Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Activating layers with .setVisible, and how to update legend widget

$
0
0
I am building a new Flex API widget in FlashBuilder to turn on and off groupings of layers. My App also uses the standard legend widget.

In my widget, I am using 'map.getLayer("MyLayer").setVisible(true);' to turn on the layers I want.

But this doesn't update the legend widget layer display. Can someone give a few pointers please. I have the map object, but cant figure out how to get to the legend from there. Thanks

Viewing all articles
Browse latest Browse all 2097

Trending Articles