AGSFeatureLayer visibility

1999
2
08-19-2011 12:12 PM
EddieJesinsky
New Contributor
I can see how to change visibility through the visibleLayer property of AGSDynamicMapServiceLayer or the defaultVisibility property of MapServiceLayerInfo, but how can I change the visibility (turn off/on) of AGSFeatureLayer? I would prefer to not have to add/remove layers to the AGSMapView every time someone wants to change the visibility.
0 Kudos
2 Replies
NimeshJarecha
Esri Regular Contributor
When you add layer to mapView with addMapLayer::withName, it returns UIView. You can use the UIView's hidden property to control the visibility of the layer.

Regards,
Nimesh
0 Kudos
EddieJesinsky
New Contributor
Thank you for your help
0 Kudos