How can I set alpha to ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer?

2004
2
01-12-2012 04:06 PM
ClementLau
New Contributor
How can I set alpha to ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer?
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: ibespalov

Clement,

May be opacity?
0 Kudos
KyleShimabukuro
New Contributor III
Here's how I used it with a dynamic layer:

ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(dynamicMapURL);
map.addLayer(dynamicLayer);

float layerOpacity = 0.5f;
dynamicLayer.setOpacity(layerOpacity);
0 Kudos