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