Just a detail.

This commit is contained in:
ClemensF 2013-11-17 21:26:57 +01:00
parent 5eafa751f8
commit a94668e08c

View file

@ -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