AnsweredAssumed Answered

javascript smart mapping color ramp

Question asked by Noodles484 on Aug 19, 2015
Latest reply on Sep 29, 2015 by Noodles484

Hi,

  I'm using the new smartMapping createClassedColorRender, but don't like the color ramp options that come for the default basemaps.  How can I change the color ramp to a simple dark blue to red ramp?

This is how I'm creating the renderer now (its for a feature layer)

Thanks,

-dave

 

smartMapping.createClassedColorRenderer({

  layer: featureLayer,

  field: fieldName,

  basemap: "oceans",

  classificationMethod: "natural-breaks",

  numClasses: 10

}).then(function (response) {

  featureLayer.setRenderer(response.renderer);

  featureLayer.redraw();

  createLegend(map, featureLayer, fieldName);

});

map.addLayer(featureLayer);

Outcomes