mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Fixed moving transform center across dateline.
This commit is contained in:
parent
7fbbf66acb
commit
afc93704d9
7 changed files with 63 additions and 55 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue