Select to view content in your preferred language

Updating Layer List Widget

2171
2
02-03-2011 04:33 AM
AliciaBañuls
Deactivated User
Hi,

I have a custom widget that activates some map layers. I also have the Layer List Widget. I need to update it so that these layers turn out to be activated. I have checked the TOC's code, but I can't find which event I have to trigger to notify the layer's visibility has changed

If anyone has any tips, I would appreciate it. Thanks in advance
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Abanuls,

   Look here at this thread. It does require a bit of work to fix.

http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes
0 Kudos
GerardoGarza
Occasional Contributor
Thanks Robert.  I was looking for the same thing to use with the MapSwitcher widget.
It works great and I don't have to mess with the visibleLayers property.  I can let the widget do all the work.  I also noticed that the response time to see the visible layers is much faster than setting the property manually.

I responded to your other post as well with my changes since I am using v2.1 of the Viewer.
0 Kudos