From f98fc34ba541f8c5ad3d6ed618e6a18af3121cf0 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Tue, 19 Aug 2025 23:21:51 +0200 Subject: [PATCH] Image loading with cancellation --- MapControl/Shared/MapTileLayer.cs | 2 +- MapControl/Shared/MapTileLayerBase.cs | 2 +- MapControl/Shared/WmtsTileLayer.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MapControl/Shared/MapTileLayer.cs b/MapControl/Shared/MapTileLayer.cs index 79c832fc..955c8491 100644 --- a/MapControl/Shared/MapTileLayer.cs +++ b/MapControl/Shared/MapTileLayer.cs @@ -119,7 +119,7 @@ namespace MapControl TileMatrix = null; Children.Clear(); - CancelLoadTilesAsync(); + CancelLoadTiles(); } else if (SetTileMatrix() || resetTiles) { diff --git a/MapControl/Shared/MapTileLayerBase.cs b/MapControl/Shared/MapTileLayerBase.cs index 4681579f..668ed113 100644 --- a/MapControl/Shared/MapTileLayerBase.cs +++ b/MapControl/Shared/MapTileLayerBase.cs @@ -196,7 +196,7 @@ namespace MapControl return TileImageLoader.LoadTilesAsync(tiles, TileSource, cacheName, loadingProgress); } - protected void CancelLoadTilesAsync() + protected void CancelLoadTiles() { TileImageLoader.CancelLoadTiles(); diff --git a/MapControl/Shared/WmtsTileLayer.cs b/MapControl/Shared/WmtsTileLayer.cs index 5a2cc526..6b7b2cc0 100644 --- a/MapControl/Shared/WmtsTileLayer.cs +++ b/MapControl/Shared/WmtsTileLayer.cs @@ -101,7 +101,7 @@ namespace MapControl { Children.Clear(); - CancelLoadTilesAsync(); + CancelLoadTiles(); } else if (UpdateChildLayers(tileMatrixSet)) {