1

I've added a ArcGISDynamicMapServiceLayer and I've used the imageParameters.layerIds property to only show certain layers.

Is there a way to set a different opacity level for each layer?

1

in general, you only get access to the symbology/opacity defined in the service itself. that being said, dynamic layers capability added at 10.1 provides an opportunity to define an entirely new renderer on the clientside for ArcGISDynamicMapServices...

Here's a link to the ArcGIS Server help for configuring map services with dynamic layer support: http://resources.arcgis.com/en/help/main/10.2/#/About_dynamic_layers/0154000004zv000000/

Here's a sample from our JS API resource center for taking advantage of them: https://developers.arcgis.com/javascript/jssamples/renderer_dynamic_layer_class_breaks.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.