mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
MapPanel, MapPath location coercion
This commit is contained in:
parent
fb81fff901
commit
27729bf06c
5 changed files with 57 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue