This is a migrated thread and some comments may be shown as answers.

Map Rendering Issue when switching providers

1 Answer 60 Views
Map
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 28 Oct 2011, 11:07 PM
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

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Nov 2011, 10:15 AM
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 >>

Tags
Map
Asked by
Kevin
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or