mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
ce979ce54c
commit
f1ea075047
2 changed files with 11 additions and 10 deletions
|
|
@ -20,7 +20,8 @@ namespace MapControl
|
|||
public class WmtsTileLayer : MapTileLayerBase
|
||||
{
|
||||
public static readonly DependencyProperty CapabilitiesUriProperty = DependencyProperty.Register(
|
||||
nameof(CapabilitiesUri), typeof(Uri), typeof(WmtsTileLayer), new PropertyMetadata(null));
|
||||
nameof(CapabilitiesUri), typeof(Uri), typeof(WmtsTileLayer),
|
||||
new PropertyMetadata(null, (o, e) => ((WmtsTileLayer)o).TileMatrixSet = null));
|
||||
|
||||
public static readonly DependencyProperty LayerIdentifierProperty = DependencyProperty.Register(
|
||||
nameof(LayerIdentifier), typeof(string), typeof(WmtsTileLayer), new PropertyMetadata(null));
|
||||
|
|
@ -169,7 +170,7 @@ namespace MapControl
|
|||
|
||||
private async void OnLoaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (CapabilitiesUri != null)
|
||||
if (TileMatrixSet == null && CapabilitiesUri != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue