I have a ArcGISDynamicMapServiceLayer containing several group layers and layers and would like to know their current visibility. Properties visibleLayers only gives me the layers visibility. How to get the group layers one ?
The Layer class does not have a IsVisible property. Based on my knowledge, the group layer visibility dependency is functionality written specifically into the Flex Viewer (rather than being a function of the API itself), therefore the best option is to use a core Flex technique to check the status of the checkbox for each individual layer rather than rely on the map.visibleLayers()