mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 23:45:05 +00:00
Updated TileSources
This commit is contained in:
parent
44d48eadde
commit
1222a4a8c2
5 changed files with 61 additions and 148 deletions
|
|
@ -17,7 +17,7 @@ namespace MapControl
|
|||
{
|
||||
public string Identifier => identifier;
|
||||
public string SupportedCrsId => supportedCrsId;
|
||||
public string UriTemplate => uriTemplate;
|
||||
public string UriTemplate { get; } = uriTemplate.Replace("{TileMatrixSet}", identifier);
|
||||
public List<WmtsTileMatrix> TileMatrixes { get; } = tileMatrixes.OrderBy(m => m.Scale).ToList();
|
||||
}
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ namespace MapControl
|
|||
throw new ArgumentException($"No TileMatrix elements found in TileMatrixSet \"{identifier}\".");
|
||||
}
|
||||
|
||||
return new WmtsTileMatrixSet(identifier, supportedCrs, uriTemplate.Replace("{TileMatrixSet}", identifier), tileMatrixes);
|
||||
return new WmtsTileMatrixSet(identifier, supportedCrs, uriTemplate, tileMatrixes);
|
||||
}
|
||||
|
||||
public static WmtsTileMatrix ReadTileMatrix(XElement tileMatrixElement, string supportedCrs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue