AnsweredAssumed Answered

Change Transparency of Layer in MapService

Question asked by gopre400 on Jul 20, 2015
Latest reply on Jul 20, 2015 by schlot

Hi, I'm trying to change the transparency of a layer in a map service. I have looked at examples and have tried different things but nothing seems to change the transparency. What am I missing?

map = new Map("map", {                 

basemap: "streets",                 

center: [-117.42330, 47.751103],                 

zoom: 11             


var roadLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://gisappserv3/ArcGIS/rest/services/SCOUT/ENGINEERINGqueries/MapServer",


id: "roadLayer",                 

visible: true             




var optionsArray = [];             

var drawingOptions = new LayerDrawingOptions();             

drawingOptions.transparency = 50;             

optionsArray[28] = drawingOptions;