Update MapImageLayer.cs

This commit is contained in:
ClemensFischer 2025-10-25 23:26:36 +02:00
parent 2f6f7ee4eb
commit 579631dd9d

View file

@ -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()