AnsweredAssumed Answered

How to set symbol levels/ordering with renderers?

Question asked by bchastain on Jan 3, 2017
Latest reply on Jan 26, 2017 by aaron.evans_EPA

When I'm using a esri javascript renderer on a dynamic map service (e.g. ClassBreaksRenderer or UniqueValueRenderer), is there any way to set the symbol levels (i.e. drawing order) for each break/value?


For example:

var renderer = new UniqueValueRenderer(...);
renderer.addValue(1, none);
renderer.addValue(2, low);
renderer.addValue(3, medium);
renderer.addValue(4, high);

Where, "none", "low", "medium", and "high" are SimpleMarkerSymbols, how can I ensure that the high (4) points always are on top of the medium (3), low (2) and none (1) points?


If I publish a service with the symbol levels defined in ArcMap, it obeys the symbol levels, but I want to be able to change the renderer dynamically and still obey the symbol levels.


Any ideas?