Unified ImageFileCache implementations

This commit is contained in:
Clemens 2021-07-01 15:43:52 +02:00
parent e98f5b9bff
commit f8b0bcbeb1
7 changed files with 25 additions and 12 deletions

View file

@ -24,7 +24,10 @@ namespace WpfApplication
//TileImageLoader.Cache = new SQLiteCache(TileImageLoader.DefaultCacheFolder);
//TileImageLoader.Cache = null;
BingMapsTileLayer.ApiKey = File.ReadAllText(@"..\..\..\BingMapsApiKey.txt")?.Trim();
var apiKeyPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "BingMapsApiKey.txt");
BingMapsTileLayer.ApiKey = File.ReadAllText(apiKeyPath)?.Trim();
}
catch (Exception ex)
{