From 16c0e042663f87554a0b82a004f3190b10456288 Mon Sep 17 00:00:00 2001 From: Clemens Date: Tue, 6 Jul 2021 22:58:03 +0200 Subject: [PATCH] Update TileImageLoader.cs --- MapControl/Shared/TileImageLoader.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/MapControl/Shared/TileImageLoader.cs b/MapControl/Shared/TileImageLoader.cs index 7cd38592..779eb618 100644 --- a/MapControl/Shared/TileImageLoader.cs +++ b/MapControl/Shared/TileImageLoader.cs @@ -60,10 +60,7 @@ namespace MapControl return Task.CompletedTask; } - if (string.IsNullOrEmpty(cacheName) || - Cache == null || - tileSource.UriFormat == null || - !tileSource.UriFormat.StartsWith("http")) + if (Cache == null || tileSource.UriFormat == null || !tileSource.UriFormat.StartsWith("http")) { cacheName = null; // no tile caching } @@ -94,7 +91,7 @@ namespace MapControl private static Task LoadTileAsync(Tile tile, TileSource tileSource, string cacheName) { - if (cacheName == null) + if (string.IsNullOrEmpty(cacheName)) { return LoadTileAsync(tile, tileSource); }