I´m trying to get a classbreakrenderer without a table or from Feature Layer.
I read the question :
How to create a ClassBreakRenderer without data coming from Feature Layer?
I´m not able to imagine/make the function that runs.
This is the code esri´s sample
var renderer = new ClassBreaksRenderer(symbol, "POP07_SQMI"); renderer.addBreak(0, 25, new SimpleFillSymbol().setColor(new Color([56, 168, 0, 0.5]))); renderer.addBreak(25, 75, new SimpleFillSymbol().setColor(new Color([139, 209, 0, 0.5]))); renderer.addBreak(75, 175, new SimpleFillSymbol().setColor(new Color([255, 255, 0, 0.5]))); renderer.addBreak(175, 400, new SimpleFillSymbol().setColor(new Color([255, 128, 0, 0.5]))); renderer.addBreak(400, Infinity, new SimpleFillSymbol().setColor(new Color([255, 0, 0, 0.5])));
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire