Map Rendering Issue when switching providers

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    11 posts
    Member since:
    Mar 2008

    Posted 28 Oct 2011 Link to this post

    Hey

    We have a weird rendering issue when quickly toggling providers.

    Main Provider: OpenStreets (Bing map also experiences the same issue)
    Other providers:
    -Bing Traffic
    -Custom Weather provider (WeatherProvider.cs using WMSMapSource.cs)

    I have a solution but I cant seem to attach it so I will post a link to download it from dropbox:
    http://dl.dropbox.com/u/43316163/TelerikIssues/MapTest.zip

    On running, the map will be centered on the US with two toggle buttons on the top left to turn on/off traffic and weather.  If you click the toggle button slowly so that you wait for the animation to fully render, the provider will appear/disappear and work as expected.

    If you click them "fast" (click both button quickly without waiting for the animation to complete), then toggle them off.  The provider overlay becomes "stuck" to the map viewport (you might have to try it a couple of times to get it to occur).  I have posted two screen shots to show you what to expect when you move the map.

    Is there a way we can refresh the map screen or can you help with a fix.

    Thanks
    Kevin
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Nov 2011 Link to this post

    Hi Kevin,

    The current implementation of the RadMap control does not  provide full support for dynamic changing of the providers collection. Currently the correct way is to clear the collection and to add the required providers again. You should invoke this.radMap.Providers.RemoveAll method and then add providers again to the RadMap.Providers collection.

    We already have a PITS issue that supports dynamic changing of the providers list. You can track implementation of it using the following link:
    http://www.telerik.com/support/pits.aspx#/public/wpf/7315

    Greetings,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top