Select to view content in your preferred language

Opacity on a Layer level vs Service Level

482
1
06-16-2010 09:35 AM
GregoryDillon
Occasional Contributor
Is it possible to adjust the opacity on a layer level rather than a service level (ArcGISDynamicMapServiceLayer)?


I have been looking at the TOC sample (very cool) and would love to put a slider on every layer under a particular service.

On a side note,  is there anyway to directly access a layer.   For example the VisibleLayers method allows you to attack the layer visibility from the service level (its a service method) - can you just set the visibility property on a particular layer.   I'm just wondering if I'm missing something, since I come from an ArcObject/ADF background (but setting the visibility of just one layer seems more straightforward).
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Is it possible to adjust the opacity on a layer level rather than a service level (ArcGISDynamicMapServiceLayer)?

Not possible at the client level. We can only set the visibilty On/off.

the VisibleLayers method allows you to attack the layer visibility from the service level (its a service method) - can you just set the visibility property on a particular layer.


You can set the visibility on a particular layer but you have to use the 'VisibleLayers' property (no other method at the layer level).
0 Kudos