AnsweredAssumed Answered

Is it possible to add a custom color ramp to an existing DMS Layer?

Question asked by chagan02 on Mar 12, 2015

Using the code below, how can I change the default color ramp for layers 3,7,11?

 

   var SatImgParams = new ImageParameters();
   SatImgParams.layerIds = [3,7,11];
   SatImgParams.layerOption = ImageParameters.LAYER_OPTION_SHOW;
   var Satellite_DMS_url = "http://new.nowcoast.noaa.gov/arcgis/rest/services/nowcoast/sat_meteo_imagery_goes_time/MapServer";
   var Satellite_DMSLayer = new ArcGISDynamicMapServiceLayer(Satellite_DMS_url, {"visible":false, opacity:0.5,refreshInterval:10.0,"imageParameters": SatImgParams});
   map.addLayer(Satellite_DMSLayer);

 

I assume that I'm working on the "Image" sublayer, so I tried adding the "color ramp" task with the field being "Image", but it didn't work.  Any thoughts?

Outcomes