Select to view content in your preferred language

TOC & Map Layers

1209
10
03-01-2011 01:47 AM
FaizanTayyab
Deactivated User
I am using Robert's TOC for Flex View 1.3 which handles scale dependency. It works great however, sometimes (not always) on loading the site, one or two mapservices/map layers in the TOC do not have the (+ tree node expander) in front of them (to display the layers contained in that map service). In other words, i think, the mapservice doesnt load (for reasons i am still not sure about as it happens only sometimes on initial loading or even on refreshing the webbrowser), hence the code which is rendering the TOC items doesnt work. Is there any way to ensure that all layers have been loaded before being rendered (in the TOC) else wait for all layers to finish loading? It might also be the case that the layers are loaded on the map but the rendering is not working?

Any ideas on how to sort this out.
Tags (2)
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Faizan,

   Maybe this is what you are looking for:
http://arcscripts.esri.com/details.asp?dbid=16239
0 Kudos