From ac107641d26652e1c793fc9c5c352be819f93aa6 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Thu, 9 Aug 2012 10:22:03 +0200 Subject: [PATCH] Set Name of default TileLayer. --- MapControl/Map.cs | 1 + SampleApps/SampleApplication/MainWindow.xaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MapControl/Map.cs b/MapControl/Map.cs index 5a142f10..48f6860c 100644 --- a/MapControl/Map.cs +++ b/MapControl/Map.cs @@ -116,6 +116,7 @@ namespace MapControl { MainTileLayer = new TileLayer { + Name = "OpenStreetMap", Description = "© {y} OpenStreetMap Contributors, CC-BY-SA", TileSource = new TileSource("http://{c}.tile.openstreetmap.org/{z}/{x}/{y}.png") }; diff --git a/SampleApps/SampleApplication/MainWindow.xaml b/SampleApps/SampleApplication/MainWindow.xaml index 06dfa6ac..52c7b01c 100644 --- a/SampleApps/SampleApplication/MainWindow.xaml +++ b/SampleApps/SampleApplication/MainWindow.xaml @@ -136,7 +136,7 @@ map content without using their APIs (i.e. Google Maps API or Bing Maps API). Hence the declarations below are for demonstration purpose only. --> - @@ -145,7 +145,7 @@ + TileSource="http://ecn.t{i}.tiles.virtualearth.net/tiles/h{q}.jpeg?g=0&stl=h" MaxZoomLevel="20" HasDarkBackground="True"/>-->