This question is locked. New answers and comments are not allowed.

Sorin Mecu
Top achievements
Rank 1
Sorin Mecu
asked on 18 Aug 2011, 09:44 AM
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?
The Silverlight RadMap is hosted in a winforms webbrowser control. Anybody else have encoutered this issue? Any advice?
4 Answers, 1 is accepted
0

Jason D
Top achievements
Rank 1
Veteran
answered on 22 Aug 2011, 07:41 PM
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.
0

Sorin Mecu
Top achievements
Rank 1
answered on 23 Aug 2011, 08:27 AM
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?
@Jason: You are using the WPF version of the map control? If not, how do you enforce caching?
0

Jason D
Top achievements
Rank 1
Veteran
answered on 23 Aug 2011, 03:50 PM
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.
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.
0
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,
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 >>