mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Check TileSource.GetUri arguments
This commit is contained in:
parent
c9316bee74
commit
4b4eecf810
3 changed files with 6 additions and 6 deletions
|
|
@ -15,9 +15,8 @@ namespace MapControl
|
|||
Uri uri = null;
|
||||
|
||||
if (UriFormat != null &&
|
||||
TileMatrixSet != null &&
|
||||
zoomLevel >= 0 &&
|
||||
zoomLevel < TileMatrixSet.TileMatrixes.Count)
|
||||
TileMatrixSet != null && TileMatrixSet.TileMatrixes.Count > zoomLevel &&
|
||||
x >= 0 && y >= 0 && zoomLevel >= 0)
|
||||
{
|
||||
uri = new Uri(UriFormat
|
||||
.Replace("{TileMatrixSet}", TileMatrixSet.Identifier)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue