using LayerDrawingOptions to change opacity of 1 layer in a mapService

Discussion created by scottdawson on Jun 5, 2013
Latest reply on Aug 10, 2014 by garype
Hi all,
I may be making this more complicated than it needs to be, but I'd like to be able to change the transparency (same as opacity?) of 1 layer in a map service, while leaving the other layers alone and having them displayed at the opacity defined by the map service.

This is easy to do on all layers served by the service, but with 10.1 server you can specify an individual layer to adjust the opacity.
At least this is my understanding.

I'm getting a bit confused with the type or Renderer (simple?) needed for the LayerDrawingOptions.  Also do I have to set all the symbols, or will it "default" to the existing definitions of the map service?  The map service is defined via an .sd file, so other than a few fixed points (ie. the layer that I want the opacity to change on), I'll have minimal visibility into what else is defined, symbology, etc..

We're running a 10.1 Arcgis server.

So, my questions are:
1) Is my understanding correct on this is how to change opacity of a single layer?
2) Is there a code example I've missed? or a 1,2,3 type how to do it.   I don't mind doing some experimenting, but a kick in the right direction would be helpful.  Again, maybe I'm looking at the examples and making more of it than necessary.
3) I don't need to define all the symbols or anything do I? just set the transparency.

Glad this functionality is there.  Thanks for any help.