mmatsuoka

setLayerDrawingOptions is not changing transparency setting

Discussion created by mmatsuoka on Apr 26, 2013
Latest reply on Jul 19, 2016 by bflessner
ArcGISDynamicMapServiceLayer's setLayerDrawingOptions is not changing the transparency. It works for the showLabels property, so I think the setup is correct. Has anyone had any success with this?
var drawingOptions = [];
var drawOption = new esri.layers.LayerDrawingOptions();
drawOption.transparency = value / 100; // Not working!! - the value is the value from the slider's onChange event.
drawOption.showLabels = false // This test line works!
drawingOptions[idxLyr] = drawOption;
layer.setLayerDrawingOptions(drawingOptions, false);


ArcGIS Server 10.1 SP1 and JavaScript API 3.2

Thanks for any help.
Masao

Outcomes