Hi,
I enabled simple tile cache for the cloud maps in the test application:
private void mapView_Loaded(object sender, RoutedEventArgs e)
{
// Set the Map Unit.
mapView.MapUnit = GeographyUnit.Meter;
// Add a base map overlay.
var cloudRasterBaseMapOverlay = new ThinkGeoCloudRasterMapsOverlay("USlbIyO5uIMja2y0qoM21RRM6NBXUad4hjK3NBD6pD0~", "f6OJsvCDDzmccnevX55nL7nXpPDXXKANe5cN6czVjCH0s8jhpCH-2A~~", ThinkGeoCloudRasterMapsMapType.Light);
cloudRasterBaseMapOverlay .TileCache = new FileRasterTileCache(@"tile_cache", "test_id", RasterTileFormat.Png);
mapView.Overlays.Add(cloudRasterBaseMapOverlay);
mapView.Refresh();
}
This is the experience from testing:
-
When I launch the application with network enabled, the tile cache works as expected. More tiles are stored into tile cache directory, when zooming and panning around the map.
-
If network is disconnected, the map can be still used, but no new tiles are fetched --> OK
-
If application is restarted, only errors are shown on the map, but the tile cache on disk is not used —> NOK
-
If network is connected again whilst app is running, the map starts working --> OK
-
If network is disconnected whilst app is running, the tile cache still works --> OK
So the tile cache seems to work differently depending on whether the network was down at the time of application startup, or if it was disconnected later. I’d expect the tile cache to also work, if app is launched without network.
Can this be improved? (also with other overlays, like cloud vector overlay and WMS and WMTS overlays)
Thanks, Rasmus