Define Opacity to some layers from ArcGISDynamicMapServiceLayer

Discussion created by drickmees on Sep 2, 2013
Latest reply on Sep 3, 2013 by drickmees
Hi again

I'm working with a Rest Service as ArcGISDynamicMapServiceLayer. It is posible to set opacity to this ArcGISDynamicMapServiceLayer by the code servicioRest.setOpacity(value/100) ,  but it does to all layers on the Rest Service, and I want to set opacity to only some layers from the Service. Is it posible? I've been looking for a solution on the API (https://developers.arcgis.com/en/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html) without results.

Thanks for help :)