Update MapTileLayerBase.cs

This commit is contained in:
Clemens 2021-11-22 23:53:01 +01:00
parent d4e851e0f7
commit 9c3fc8fd48

View file

@ -190,6 +190,13 @@ namespace MapControl
protected abstract Task UpdateTileLayer();
private Task Update()
{
updateTimer.Stop();
return UpdateTileLayer();
}
private async void OnViewportChanged(object sender, ViewportChangedEventArgs e)
{
if (Children.Count == 0 || e.ProjectionChanged || Math.Abs(e.LongitudeOffset) > 180d)
@ -208,12 +215,5 @@ namespace MapControl
updateTimer.Start();
}
}
private Task Update()
{
updateTimer.Stop();
return UpdateTileLayer();
}
}
}