From cefc457d370367aab3bbb0cad48a3a0350fdb82d Mon Sep 17 00:00:00 2001 From: Clemens Date: Sat, 13 Nov 2021 16:45:41 +0100 Subject: [PATCH] Update MapTileLayer.cs --- MapControl/Shared/MapTileLayer.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MapControl/Shared/MapTileLayer.cs b/MapControl/Shared/MapTileLayer.cs index b6e129a4..8d30dba1 100644 --- a/MapControl/Shared/MapTileLayer.cs +++ b/MapControl/Shared/MapTileLayer.cs @@ -122,14 +122,17 @@ namespace MapControl if (ParentMap == null || !ParentMap.MapProjection.IsWebMercator) { + update = TileMatrix != null; TileMatrix = null; - update = true; } else { if (TileSource != TileImageLoader.TileSource) { - Tiles = new List(); + if (Tiles.Count > 0) + { + Tiles = new List(); // clear all + } update = true; }