Select to view content in your preferred language

Set drawing order of overlapping symbols

798
4
06-25-2010 03:07 AM
Joachim_EckboJuell
Occasional Contributor
Hi,

I have a map service with overlapping points. And I have four different symbols (different size) in a UniqueValueRenderer. I need to make sure the largest one is "at the bottom" and the smallest one on top. How can I do this?

I have tried setting the Canvas.ZIndex on the Grid inside the esri:MarkerSymbol.ControlTemplate, with no luck...

Thanks 🙂
0 Kudos
4 Replies
Joachim_EckboJuell
Occasional Contributor
Nobody? Am I thinking completely wrong? Morten? 🙂
0 Kudos
dotMorten_esri
Esri Notable Contributor
graphic.SetZIndex(1);
0 Kudos
Joachim_EckboJuell
Occasional Contributor
Thank you.

But it wasn't in my plan to loop through all the graphics in the FeatureLayer. I load everything OnDemand, so that will be heavy.

No other way?
0 Kudos
dotMorten_esri
Esri Notable Contributor
No sorry. The problem with zindex is that it only works among elements within the same level in the UI tree. Setting it inside the control template means it's in a different level in the tree.
0 Kudos