mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-19 14:14:55 +01:00
Just a detail.
This commit is contained in:
parent
5eafa751f8
commit
a94668e08c
|
|
@ -103,9 +103,10 @@ namespace MapControl
|
|||
|
||||
ViewportTransform.Matrix = GetViewportTransformMatrix(scale, transformOffsetX, transformOffsetY);
|
||||
|
||||
if (Math.Sign(mapOrigin.X) != Math.Sign(oldMapOriginX) && Math.Abs(mapOrigin.X) > 90d)
|
||||
if (Math.Abs(mapOrigin.X - oldMapOriginX) > 180d)
|
||||
{
|
||||
// immediately handle map origin leap when map center moves across the date line
|
||||
// immediately handle map origin leap when map center moves across 180° longitude
|
||||
|
||||
UpdateTiles(this, EventArgs.Empty);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue