mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
f1ea075047
commit
f3d0dd0f74
|
|
@ -10,6 +10,7 @@ using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Controls;
|
using Windows.UI.Xaml.Controls;
|
||||||
using Windows.UI.Xaml.Documents;
|
using Windows.UI.Xaml.Documents;
|
||||||
#else
|
#else
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Documents;
|
using System.Windows.Documents;
|
||||||
|
|
@ -45,7 +46,18 @@ namespace MapControl
|
||||||
link.Inlines.Add(new Run { Text = match.Groups[1].Value });
|
link.Inlines.Add(new Run { Text = match.Groups[1].Value });
|
||||||
#if !WINDOWS_UWP
|
#if !WINDOWS_UWP
|
||||||
link.ToolTip = uri.ToString();
|
link.ToolTip = uri.ToString();
|
||||||
link.RequestNavigate += (s, e) => System.Diagnostics.Process.Start(e.Uri.ToString());
|
|
||||||
|
link.RequestNavigate += (s, e) =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Process.Start(e.Uri.ToString());
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.WriteLine("{0}: {1}", e.Uri, ex);
|
||||||
|
}
|
||||||
|
};
|
||||||
#endif
|
#endif
|
||||||
inlines.Add(link);
|
inlines.Add(link);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -114,17 +114,27 @@ namespace ViewModel
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SevenCs ChartServer",
|
"TopPlusOpen WMS",
|
||||||
new ChartServerLayer()
|
new WmsImageLayer
|
||||||
|
{
|
||||||
|
Description = "© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wms-topplusopen-mit-layer-fur-normalausgabe-und-druck-wms-topplus-open.html)",
|
||||||
|
ServiceUri = new Uri("https://sgx.geodatenzentrum.de/wms_topplus_open"),
|
||||||
|
Layers = "web"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"TopPlusOpen WMTS",
|
"TopPlusOpen WMTS",
|
||||||
new WmtsTileLayer
|
new WmtsTileLayer
|
||||||
{
|
{
|
||||||
|
Description = "© [BKG](https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wmts-topplusopen-wmts-topplus-open.html)",
|
||||||
CapabilitiesUri = new Uri("https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml"),
|
CapabilitiesUri = new Uri("https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml"),
|
||||||
SourceName = "TopPlusOpen"
|
SourceName = "TopPlusOpen"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"SevenCs ChartServer",
|
||||||
|
new ChartServerLayer()
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
private string currentMapLayerName = "OpenStreetMap";
|
private string currentMapLayerName = "OpenStreetMap";
|
||||||
|
|
@ -158,6 +168,7 @@ namespace ViewModel
|
||||||
"Stamen Toner Light",
|
"Stamen Toner Light",
|
||||||
"OpenStreetMap WMS",
|
"OpenStreetMap WMS",
|
||||||
"OpenStreetMap TOPO WMS",
|
"OpenStreetMap TOPO WMS",
|
||||||
|
"TopPlusOpen WMS",
|
||||||
"TopPlusOpen WMTS",
|
"TopPlusOpen WMTS",
|
||||||
"SevenCs ChartServer",
|
"SevenCs ChartServer",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue