When trying to set tile cache for ThinkGeoCloudRasterMapsOverlay something will always override it’s cache id. This causes some frustration as I’m trying to create uniform naming for all overlays we are using.
Please see following:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
mapView.MapUnit = GeographyUnit.Meter;
var overlay = new ThinkGeoCloudRasterMapsOverlay(@"clientId", @"clientSecret");
overlay.MapType = ThinkGeoCloudRasterMapsMapType.Light;
Console.WriteLine(overlay.TileCache);
// Prints C:\Users\viita\AppData\Local\Temp\ ThinkGeoCloudMaps_Light_3857
var tileCache = new FileRasterTileCache(@"C:\Temp", @"Cache");
Console.WriteLine(tileCache);
// Prints C:\Temp Cache
overlay.TileCache = tileCache;
Console.WriteLine(overlay.TileCache);
// Prints C:\Temp Cache_Light_3857
mapView.Overlays.Add(overlay);
mapView.Refresh();
}
So path to cache root is kept intact but cache id can’t be changed.
ThinkGeoCloudVectorMapsOverlay and it’s FileVectorTileCache does not have this issue.