Version 4.17.0: Added support for WMTS

This commit is contained in:
ClemensF 2020-03-21 08:17:15 +01:00
parent e06e910126
commit aff7323287
2 changed files with 19 additions and 8 deletions

View file

@ -203,7 +203,9 @@ namespace MapControl
{
TileMatrixSets.Clear();
var ns = capabilitiesElement.Name.Namespace;
XNamespace ns = capabilitiesElement.Name.Namespace;
XNamespace ows = "http://www.opengis.net/ows/1.1";
var contentsElement = capabilitiesElement.Element(ns + "Contents");
if (contentsElement == null)
@ -211,7 +213,6 @@ namespace MapControl
throw new ArgumentException("Contents element not found.");
}
XNamespace ows = "http://www.opengis.net/ows/1.1";
XElement layerElement;
if (!string.IsNullOrEmpty(LayerIdentifier))