Layer confusion
-
David,
Were you able to get to work?
I'd like to add some of the same type of functionality to my map.
Thanks,
Tyler
0 -
Hello Tyler,
David and I actually worked around this... by not using the essentials layer object at all. We don't fully initialise the essentials services and layers, because this causes its own set of peculiar behaviours; we're controlling the visibility by accessing the esri service layer directly. We're using a couple of arrays stored in globals.visible[sid][] to control visibility:
var esService = essentials.site.essentialsMap.mapServices[serviceId];
This works perfectly well with the essentials print engine at version 3.4.1, ArcGIS API v2.1. We've not tried 3.5.1 yet, but 3.5 broke printing for us, and AGS API >2.1 breaks *everything*.
It's currently powering the site at: http://info.nottinghamcity.gov.uk/insightmapping/
- Ben
0 -
Ben,
Great mapping site. http://info.nottinghamcity.gov.uk/insightmapping/
Thanks for the coding tip.
I was running into some of the same issues when initializing the essentials layers.
I really wished that GeoCortex had some coding examples on the resources.geocortex JS API site for best practices when creating legends, layer lists with check boxes/ radio buttons, etc. And not have to worry about “work-arounds” not working, or breaking things at the next API version release.
Thanks again for your help.
Tyler
0
Please sign in to leave a comment.
Comments
3 comments