AnsweredAssumed Answered

Graphics Layer always on top

Question asked by epaitz-esristaff Employee on Oct 7, 2015
Latest reply on Oct 9, 2015 by epaitz-esristaff

We have a need to show several point, line, and polygon graphics layers on the map that are also visible in the legend. In the WPF API this was done with the GraphicsLayer. The issue is that we need these GraphicsLayers to always be on top of all other layers. Our application allows the user to add layers on the fly (like KML, SHP, MapServices, etc), thus after a user adds a layer we need these GraphicsLayers to be on top of the newly added layer. Now with the .NET API we were going to use the MapView.GraphicsOverlays with a GraphicsOverlay because the API will keep these layers on top of all other layers (which is perfect) but it says that these layers are not visible to the legend.

 

Can someone offer a simple suggestion for keeping a GraphicsLayer always on top of all other layers during the lifetime of the application?

 

As an enhancement request

 

1.) By default do not show a GraphicsOverlay in the legend but have a property that can be set that would allow it to be visible to the legend.

2.) (or) Add logic to the GraphicsLayer class that would keep it on top. Maybe a bool property like GraphicsLayer.IsAlwaysOnTop that is false by default.

 

Thanks,

   -eric

Outcomes