mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Add BoundingBox.HasValidBounds
This commit is contained in:
parent
45cda387e4
commit
849a4e206c
3 changed files with 7 additions and 5 deletions
|
|
@ -58,9 +58,9 @@ namespace MapControl
|
|||
public virtual double Height => North - South;
|
||||
|
||||
public virtual Location Center =>
|
||||
double.IsNaN(South) || double.IsNaN(North) || double.IsNaN(West) || double.IsNaN(East)
|
||||
? null
|
||||
: new Location((South + North) / 2d, (West + East) / 2d);
|
||||
HasValidBounds ? new Location((South + North) / 2d, (West + East) / 2d) : null;
|
||||
|
||||
public virtual bool HasValidBounds => South < North && West < East;
|
||||
|
||||
public static BoundingBox Parse(string boundingBox)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue