MapPanel, MapPath location coercion

This commit is contained in:
ClemensFischer 2024-08-29 23:56:29 +02:00
parent fb81fff901
commit 27729bf06c
5 changed files with 57 additions and 46 deletions

View file

@ -372,6 +372,10 @@ namespace MapControl
}
}
internal bool InsideViewport(Point point) =>
point.X >= 0d && point.X <= ActualWidth &&
point.Y >= 0d && point.Y <= ActualHeight;
internal double CoerceLongitude(double longitude)
{
var offset = longitude - Center.Longitude;