How to get group layers visibility

524
2
09-30-2013 03:47 AM
MathieuVILLEMONT1
Occasional Contributor
Hello,

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 ?

Thanks,

Mat
Tags (2)
0 Kudos
2 Replies
DougBrowning
MVP Esteemed Contributor
You can get the parent and then check the visibility of the parent i think.
0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Mathieu,

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()
0 Kudos