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
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