Hello,
I’ve had issue with RadMap Provider cache in my application. My RadMap is connected to a local WMS (Geoserver). I've changed the map on the Geoserver to hide airport locations but it's not displayed in my RadMap (see attachments).
I have set
the attribute "IsTileCachingEnabled
= true" to enable tile caching
(under %APPDATA%/Local/TelerikMapCache).
Then I added a function to clear the MapProvider when requested by the user :
if (_mapProviderWrapper.MapProvider is WmsCustomProvider)
{
var wmsCustomProvider = (WmsCustomProvider)_mapProviderWrapper.MapProvider;
var cacheStorage =
wmsCustomProvider.CacheStorage as FileSystemCache;
if (cacheStorage != null)
{
string cachePath =
cacheStorage.CachePath;
Directory.Delete(cachePath, true);
Directory.CreateDirectory(cachePath);
}
}
But even
when the folder is empty and that I restart the application, RadMap still display
airports which may means that tiles are cached somewhere else.
Is there a
way to force a refresh of a MapProvider after the cache has been cleared?
Thanks!
Etienne