From a94668e08c4f466ae056811994aff6cafb4af550 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Sun, 17 Nov 2013 21:26:57 +0100 Subject: [PATCH] Just a detail. --- MapControl/TileContainer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MapControl/TileContainer.cs b/MapControl/TileContainer.cs index 054bd91f..fab23492 100644 --- a/MapControl/TileContainer.cs +++ b/MapControl/TileContainer.cs @@ -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