mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-03-26 23:26:16 +01:00
Update MapTilerLayers.cs
This commit is contained in:
parent
9228833731
commit
618f0b641c
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using MapControl;
|
using MapControl;
|
||||||
using MapControl.UiTools;
|
using MapControl.UiTools;
|
||||||
|
|
@ -25,7 +25,7 @@ namespace SampleApplication
|
||||||
partial void AddMapTilerLayers()
|
partial void AddMapTilerLayers()
|
||||||
{
|
{
|
||||||
#if UWP
|
#if UWP
|
||||||
var mapTilerApiKeyPath = "BingMapsApiKey.txt";
|
var mapTilerApiKeyPath = "MapTilerApiKey.txt";
|
||||||
#else
|
#else
|
||||||
var mapTilerApiKeyPath = Path.Combine(
|
var mapTilerApiKeyPath = Path.Combine(
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "MapTilerApiKey.txt");
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "MapTilerApiKey.txt");
|
||||||
|
|
@ -41,7 +41,9 @@ namespace SampleApplication
|
||||||
{
|
{
|
||||||
TileSource = new TileSource { UriTemplate = "https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=" + apiKey },
|
TileSource = new TileSource { UriTemplate = "https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=" + apiKey },
|
||||||
SourceName = "MapTiler Satellite",
|
SourceName = "MapTiler Satellite",
|
||||||
Description = "© [MapTiler](https://www.maptiler.com/)"
|
Description = "© [MapTiler](https://www.maptiler.com/)",
|
||||||
|
MapBackground = new SolidColorBrush { Color = Colors.Black },
|
||||||
|
MapForeground = new SolidColorBrush { Color = Colors.White },
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue