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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.