mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapImageLayer.cs
This commit is contained in:
parent
2f6f7ee4eb
commit
579631dd9d
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue