Version 4.10.0: Simplified MapProjection.

This commit is contained in:
ClemensF 2018-08-25 17:54:09 +02:00
parent bbd952b955
commit b06c9065af
11 changed files with 41 additions and 101 deletions

View file

@ -246,7 +246,7 @@ namespace MapControl
{
pos = parentMap.MapProjection.LocationToViewportPoint(location);
if (parentMap.MapProjection.IsContinuous &&
if (parentMap.MapProjection.IsCylindrical &&
(pos.X < 0d || pos.X > parentMap.RenderSize.Width ||
pos.Y < 0d || pos.Y > parentMap.RenderSize.Height))
{
@ -310,7 +310,7 @@ namespace MapControl
var center = new Point(rect.X + rect.Width / 2d, rect.Y + rect.Height / 2d);
var pos = projection.ViewportTransform.Transform(center);
if (parentMap.MapProjection.IsContinuous &&
if (parentMap.MapProjection.IsCylindrical &&
(pos.X < 0d || pos.X > parentMap.RenderSize.Width ||
pos.Y < 0d || pos.Y > parentMap.RenderSize.Height))
{