I have an SVG image to create a PictureMarkerSymbol for a feature. How to create a color ramp to change the SVG color based on a criteria, like a attribute on my feature?

The idea is like that:

var mySymbol = new esri.symbol.PictureMarkerSymbol("../resources/img/myimage.svg", 32, 32).setOffset(0, 8);
var renderer = new esri.renderers.SimpleRenderer(mySymbol);

renderer.changeColor ( field, colors, criteria )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.