self.dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:2], nil];
Yes, you need to set the visibleLayers property on AGSDynamicMapServiceLayer.You'll see it in the MapViewDemo sampleself.dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:2], nil];
ok... what is the relationship between self.dynamicLayer.visibleLayers and each layerInfo.visible property? when I load the service (AGSDynamicMapServiceLayer), visibleLayers array is empty, but all layerInfo.visible attributes are set to true.Is this property updated when I change the visibleLayers array?Thanks
ok, answer to my own questions:- initially visibleLayers array is nil.- each layer's visible property is the default visibility and doesn't change when you update the visibleLayers arrayIs it correct? Thanks.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.