Version 4.12. Revised projections

This commit is contained in:
ClemensF 2018-12-20 21:55:12 +01:00
parent 8cafe207cb
commit 90aa92def0
25 changed files with 390 additions and 167 deletions

View file

@ -256,7 +256,7 @@ namespace MapControl
boundingBox = ParentMap.MapProjection.ViewportRectToBoundingBox(rect);
if (boundingBox != null && boundingBox.HasValidBounds)
if (boundingBox != null)
{
if (!double.IsNaN(MinLatitude) && boundingBox.South < MinLatitude)
{
@ -289,7 +289,7 @@ namespace MapControl
private void AdjustBoundingBox(double longitudeOffset)
{
if (Math.Abs(longitudeOffset) > 180d && boundingBox != null && boundingBox.HasValidBounds)
if (Math.Abs(longitudeOffset) > 180d && boundingBox != null)
{
var offset = 360d * Math.Sign(longitudeOffset);
@ -300,7 +300,7 @@ namespace MapControl
{
var bbox = GetBoundingBox(element);
if (bbox != null && bbox.HasValidBounds)
if (bbox != null)
{
SetBoundingBox(element, new BoundingBox(bbox.South, bbox.West + offset, bbox.North, bbox.East + offset));
}