mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Set Name of default TileLayer.
This commit is contained in:
parent
be3144af07
commit
ac107641d2
|
|
@ -116,6 +116,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
MainTileLayer = new TileLayer
|
MainTileLayer = new TileLayer
|
||||||
{
|
{
|
||||||
|
Name = "OpenStreetMap",
|
||||||
Description = "© {y} OpenStreetMap Contributors, CC-BY-SA",
|
Description = "© {y} OpenStreetMap Contributors, CC-BY-SA",
|
||||||
TileSource = new TileSource("http://{c}.tile.openstreetmap.org/{z}/{x}/{y}.png")
|
TileSource = new TileSource("http://{c}.tile.openstreetmap.org/{z}/{x}/{y}.png")
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@
|
||||||
map content without using their APIs (i.e. Google Maps API or Bing Maps API).
|
map content without using their APIs (i.e. Google Maps API or Bing Maps API).
|
||||||
Hence the declarations below are for demonstration purpose only. -->
|
Hence the declarations below are for demonstration purpose only. -->
|
||||||
|
|
||||||
<map:TileLayer Name="Google Maps" Description="Google Maps - © {y} Google"
|
<!--<map:TileLayer Name="Google Maps" Description="Google Maps - © {y} Google"
|
||||||
TileSource="http://mt{i}.google.com/vt/x={x}&y={y}&z={z}" MaxZoomLevel="20"/>
|
TileSource="http://mt{i}.google.com/vt/x={x}&y={y}&z={z}" MaxZoomLevel="20"/>
|
||||||
<map:TileLayer Name="Google Images" Description="Google Maps - © {y} Google"
|
<map:TileLayer Name="Google Images" Description="Google Maps - © {y} Google"
|
||||||
TileSource="http://khm{i}.google.com/kh/v=113&x={x}&y={y}&z={z}" MaxZoomLevel="20" HasDarkBackground="True"/>
|
TileSource="http://khm{i}.google.com/kh/v=113&x={x}&y={y}&z={z}" MaxZoomLevel="20" HasDarkBackground="True"/>
|
||||||
|
|
@ -145,7 +145,7 @@
|
||||||
<map:TileLayer Name="Bing Images" Description="Bing Maps - © {y} Microsoft Corporation"
|
<map:TileLayer Name="Bing Images" Description="Bing Maps - © {y} Microsoft Corporation"
|
||||||
TileSource="http://ecn.t{i}.tiles.virtualearth.net/tiles/a{q}.jpeg?g=0" MaxZoomLevel="20" HasDarkBackground="True"/>
|
TileSource="http://ecn.t{i}.tiles.virtualearth.net/tiles/a{q}.jpeg?g=0" MaxZoomLevel="20" HasDarkBackground="True"/>
|
||||||
<map:TileLayer Name="Bing Hybrid" Description="Bing Maps - © {y} Microsoft Corporation"
|
<map:TileLayer Name="Bing Hybrid" Description="Bing Maps - © {y} Microsoft Corporation"
|
||||||
TileSource="http://ecn.t{i}.tiles.virtualearth.net/tiles/h{q}.jpeg?g=0&stl=h" MaxZoomLevel="20" HasDarkBackground="True"/>
|
TileSource="http://ecn.t{i}.tiles.virtualearth.net/tiles/h{q}.jpeg?g=0&stl=h" MaxZoomLevel="20" HasDarkBackground="True"/>-->
|
||||||
|
|
||||||
<!-- The TileLayer below uses an ImageTileSource, which bypasses caching of map tile images -->
|
<!-- The TileLayer below uses an ImageTileSource, which bypasses caching of map tile images -->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue