Updated TileImageLoader

This commit is contained in:
ClemensFischer 2025-12-25 23:53:49 +01:00
parent 3c991d691b
commit 2961836792
6 changed files with 10 additions and 8 deletions

View file

@ -163,7 +163,7 @@ namespace MapControl
{
await tile.LoadImageAsync(() => tileSource.LoadImageAsync(tile.ZoomLevel, tile.Column, tile.Row)).ConfigureAwait(false);
}
else if (uri.Scheme != "http" && uri.Scheme != "https" || string.IsNullOrEmpty(cacheName))
else if (uri.Scheme != Uri.UriSchemeHttps && uri.Scheme != Uri.UriSchemeHttp || string.IsNullOrEmpty(cacheName))
{
await tile.LoadImageAsync(() => tileSource.LoadImageAsync(uri)).ConfigureAwait(false);
}