Check TileSource.GetUri arguments

This commit is contained in:
Clemens 2022-08-19 08:38:48 +02:00
parent c9316bee74
commit 4b4eecf810
3 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ namespace MapControl
get => uriFormat;
set
{
uriFormat = value?.Replace("{c}", "{s}"); // for backwards compatibility since 5.4.0
uriFormat = value;
if (Subdomains == null && uriFormat != null && uriFormat.Contains("{s}"))
{
@ -53,7 +53,7 @@ namespace MapControl
{
Uri uri = null;
if (UriFormat != null)
if (UriFormat != null && x >= 0 && y >= 0 && zoomLevel >= 0)
{
var uriString = UriFormat
.Replace("{x}", x.ToString())