RadMap not loading Bing Tiles (Intermittently)

5 posts, 0 answers
  1. Rick
    Rick avatar
    3 posts
    Member since:
    Apr 2011

    Posted 21 May 2015 Link to this post

    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

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 May 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rick
    Rick avatar
    3 posts
    Member since:
    Apr 2011

    Posted 26 May 2015 in reply to Petar Mladenov Link to this post

    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. 
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 May 2015 Link to this post

    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
  6. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 09 Jun 2015 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready