I am developing an iOS app. My app have multiple layers in a dynamic layer. I don't change opacity with name just one layer. But just changing the opacity of the recently added layers. how to change opacity in dynamic layer with name ?
[dynamicLayer setOpacity: (CGFloat)sender.value];
thanks in advance
The Dynamic Layer or all AGSLayers in this case, has a property called Opacity:
The opacity of this layer as a value between 0(fully transparent) and 1(fully opaque)
ArcGIS iOS SDK - API Reference
Hope this helps.
Cheers
Al
Thank for replies. I had one dynamic layer and than added into two and more layer different name. For example, NSURL* urldynamic1 = [NSURL URLWithString:URL1]; dynamicLayer1 = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: urldynamic1]; [self.mapView addMapLayer:dynamicLayer1 withName:Name1]; NSURL* urldynamic2 = [NSURL URLWithString:URL2]; dynamicLayer2 = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: urldynamic2]; [self.mapView addMapLayer:dynamicLayer2 withName:Name2]; just changing the opacity of the recently added layers.
Hi Furkan Ozoglu,
Are you saying that you're not sure how to get hold of the layer once your app has started? Or has Al Pascual helped resolve your issue?
Cheers,
Nick.