mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +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
|
|
@ -19,17 +19,17 @@ namespace MapControl
|
|||
|
||||
public override Uri GetUri(int x, int y, int zoomLevel)
|
||||
{
|
||||
if (zoomLevel < 0 || zoomLevel >= tileMatrixes.Count)
|
||||
Uri uri = null;
|
||||
|
||||
if (zoomLevel >= 0 && zoomLevel < tileMatrixes.Count)
|
||||
{
|
||||
return null;
|
||||
uri = new Uri(UriFormat
|
||||
.Replace("{TileMatrix}", tileMatrixes[zoomLevel].Identifier)
|
||||
.Replace("{TileCol}", x.ToString())
|
||||
.Replace("{TileRow}", y.ToString()));
|
||||
}
|
||||
|
||||
var url = UriFormat
|
||||
.Replace("{TileMatrix}", tileMatrixes[zoomLevel].Identifier)
|
||||
.Replace("{TileCol}", x.ToString())
|
||||
.Replace("{TileRow}", y.ToString());
|
||||
|
||||
return new Uri(url);
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue