Update MainWindow.xaml.cs

This commit is contained in:
Clemens 2021-11-17 21:35:55 +01:00
parent 79eb9a75c6
commit 938b03efa1

View file

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