Select to view content in your preferred language

How to create a color ramp to change the color of a svg image in javascript api

426
1
01-08-2014 02:53 AM
AlexandreLuquetta
New Contributor
I have a svg image to create a PictureMarkerSimbol 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 ideia 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 )


Thanks in advanced
0 Kudos
1 Reply
Enguerranddes_Vaux
Regular Contributor
any solution ?
I would like to do the same 🙂
0 Kudos