From 579631dd9d9dba9ba154072b22f040d5f77ea8c6 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Sat, 25 Oct 2025 23:26:36 +0200 Subject: [PATCH] Update MapImageLayer.cs --- MapControl/Shared/MapImageLayer.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/MapControl/Shared/MapImageLayer.cs b/MapControl/Shared/MapImageLayer.cs index 8477a03b..7622c258 100644 --- a/MapControl/Shared/MapImageLayer.cs +++ b/MapControl/Shared/MapImageLayer.cs @@ -180,16 +180,7 @@ namespace MapControl protected async Task UpdateImageAsync() { - if (updateInProgress) - { - // Update image on next timer tick. - // - if (!updateTimer.IsEnabled) - { - updateTimer.Start(); - } - } - else + if (!updateInProgress) { updateInProgress = true; updateTimer.Stop(); @@ -216,6 +207,10 @@ namespace MapControl updateInProgress = false; } + else if (!updateTimer.IsEnabled) // update on next timer tick + { + updateTimer.Start(); + } } private void ClearImages()