Select to view content in your preferred language

how to change opacity in dynamic layer with name ?

4306
3
03-18-2015 01:09 AM
FurkanOzoglu
New Contributor

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

0 Kudos
3 Replies
by Anonymous User
Not applicable

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)

Since
10.1.1

ArcGIS iOS SDK - API Reference

Hope this helps.

Cheers

Al

FurkanOzoglu
New Contributor

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.

0 Kudos
Nicholas-Furness
Esri Regular Contributor

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.

0 Kudos