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

RadMap not loading Bing Tiles (Intermittently)

4 Answers 204 Views
Map
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 21 May 2015, 04:50 PM

We have a solution that has been in production at multiple sites for about 11 months. It is using v2012.2.607.40 of the controls. A few weeks ago one of our sites started reporting and issue where the map tiles were not loading.

It seems to be intermittent at best. If the application loads tiles on startup it appears to function properly for the lifetime of the session. If the tiles do not load on startup it does not load them for the lifetime of the session.

We see the initial request go out the door to authenticate to Bing and the Tile Service addressed returned. We never see the Tile Request happen if the client is in the "failed" state.

 

Any information on where to look for a possible network issue would be greatly appreciated. We are not seeing any errors return by RadMap, just a gray screen signifying that no tiles have loaded.

 

Thanks,

Rick Adair

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 26 May 2015, 08:18 AM
Hello Rick,

Do you use IsTileCachingEnabled = True on the MapProvider ? If yes, you can try clearing the Map Cache.

Tile caching uses default path like the following:
C:\Documents and Settings\User\AppData\Local\TelerikMapCache\

You can clear the tile cache using the sample code below.

string profile = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string cachePath = profile + "\\TelerikMapCache";
Directory.Delete(cachePath, true);

Also when you use a built-in map provider like Bing or OpenStreet then I wouldn't recommend to use the tile cache. By default the current version of RadMap for WPF uses cache of .Net and the request cache level is set to RequestCacheLevel.CacheIfAvailable. So, I would recommend using the RadMap tile cache feature for custom map providers only. When the nature of the tile server requires additional settings of the cache (for example when it doesn't provide correct expiration date for tiles).

 



Regards,
Petar Mladenov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Rick
Top achievements
Rank 1
answered on 26 May 2015, 12:02 PM
I knew there was a piece of information that I forgot to add. We do not have the cache enabled. I did verify that there were not tiles being cached in the default location. 
0
Petar Mladenov
Telerik team
answered on 29 May 2015, 07:55 AM
Hello Rick,

You mentioned "one of your sites" - so do you use RadMap for Silverlight ? Is it possible to test whether the bing maps (https://www.bing.com/maps/) are successfully shown by the time RadMap fails to open them ?
Can you check the internet connectivity by that time ? 

Regards,
Petar Mladenov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jason D
Top achievements
Rank 1
Veteran
answered on 09 Jun 2015, 09:24 PM
Rick, do you mean no tiles at all load? I had a ticket open previously because random tiles would not load. Once a tile did not load, the map would not try to redownload the tile. This is with caching enabled though. No solution was found to my issue, though.
Tags
Map
Asked by
Rick
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Rick
Top achievements
Rank 1
Jason D
Top achievements
Rank 1
Veteran
Share this question
or