Select to view content in your preferred language

Layer Priorities

614
3
05-18-2010 09:32 AM
centuitcentuit
Emerging Contributor
Hi,
Currently I have 2 layers, ElementLayer and GraphicsLayer on the Map
I need to have the GraphicsLayer to be the highest prority, just like ZOrder in windows.
So when I have a Cluster, it should be on top of all the other layers.

Can you provide a sample code on how to do this ?

Thanks
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
You have to deal with the order of the layers in the LayerCollection Map.Layers.

I have no code to provide, but as a LayerCollection is also implementing ICollection and IList, it should be easy to change the order.
0 Kudos
centuitcentuit
Emerging Contributor
Thanks, it worked.
0 Kudos
AvronPolakow
Occasional Contributor
What code did you use with the Icollection or IList?
0 Kudos