Fixed moving transform center across dateline.

This commit is contained in:
ClemensFischer 2022-11-24 23:24:51 +01:00
parent 7fbbf66acb
commit afc93704d9
7 changed files with 63 additions and 55 deletions

View file

@ -201,9 +201,9 @@ namespace MapControl
private async void OnViewportChanged(object sender, ViewportChangedEventArgs e)
{
if (Children.Count == 0 || e.ProjectionChanged || Math.Abs(e.LongitudeOffset) > 180d)
if (Children.Count == 0 || e.ProjectionChanged || e.TransformCenterChanged)
{
await Update(); // update immediately when projection has changed or center has moved across 180° longitude
await Update(); // update immediately
}
else
{