Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Order of XamGeographicMap series items
posted

Greetings
Could you please give me a hint: are there any features for managing order of XamGeographicMap series items?
How I have map with GeographicSymbolSeries series
ItemSource of this series was binded to ICollectionViewSource, that was ordered by specific "SortDescription"
This ICollectionViewSource can affects on series items ordering, but if I drag map from area with bunch of series items, leaved this items behind viewport, then drag previous map area back, ordering of GeographicSymbolSeries will be messed.
I guess, this happens because of some map rendering oprimization...

So, are there any ways to prevent this behaviour? I need that some specific items from this series will be displayed always on top

Thanks in advance!

Parents
  • 34810
    Offline posted

    Hello Vjacheslav,

    I have been investigating into the behavior you are seeing in this case, and if there are specific items in the GeographicSymbolSeries that you want to always render on top, I have a couple of recommendations for you in this case.

    The first is that you move the specific items that you want to render on top to a separate GeographicSymbolSeries. The reason for this is because if you have everything in the same GeographicSymbolSeries, they will be rendered in the same Canvas and if you move some symbols away from the viewport, they will not be rendered until they come back, and this may not be in the same order.

    Something else you can try in this case is to utilize the Canvas.ZIndex, but this will only have the potential to work if you provide a MarkerTemplate to the GeographicSymbolSeries, which I am not sure if you are doing.

    Please let me know if you have any other questions or concerns on this matter.

Reply Children
No Data