OSM provider tiles with access blocked

5 posts, 0 answers
  1. Sorin Mecu
    Sorin Mecu avatar
    10 posts
    Member since:
    Jan 2010

    Posted 18 Aug 2011 Link to this post

    Recently 2 of our clients started to receive tiles with Access Blocked when using the OSM tiles.  See: http://wiki.openstreetmap.org/wiki/Access_blocked 

    The Silverlight RadMap is hosted in a winforms webbrowser control. Anybody else have encoutered this issue? Any advice?
  2. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 22 Aug 2011 Link to this post

    I use it in a WinForms app, but not having any issues yet. However, we cache the tiles for two weeks to prevent repeated access to OSM. Our clients generally in one area at a time, so once the tiles are downloaded, they will likely not hit the servers again for awhile.
  3. DevCraft banner
  4. Sorin Mecu
    Sorin Mecu avatar
    10 posts
    Member since:
    Jan 2010

    Posted 23 Aug 2011 Link to this post

    From what i know the OSM servers have an HTTP Expiry Header set to 7 days. Any idea how can someone disable the caching? I know that one of the users who experiences the access blocked, have the IE Check for newer versions of stored pages set to Automatically

    @Jason: You are using the WPF version of the map control? If not, how do you enforce caching?
  5. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 23 Aug 2011 Link to this post

    Yes, I'm using the WPF version, so I probably can't help much. I just do this to cache it:

            moMapProvider.IsTileCachingEnabled = True
            CType(moMapProvider.CacheStorage, FileSystemCache).MaxExpirationTime = System.TimeSpan.FromDays(15)
            CType(moMapProvider.CacheStorage, FileSystemCache).CachePath = IO.Path.Combine( _
             System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), _
             "TelerikMapCache\OpenStreetMapProvider")

    where moMapProvider is an OpenStreetMapProvider.
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Aug 2011 Link to this post

    Hello Sorin Mecu,

    We haven't had such problems with OSM in our applications. The OSM manage access to the map tiles using own usage policy. It looks like your application (or your customers) did something which brake this policy.

    All the best,
    Andrey Murzov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
DevCraft banner