mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.12. Revised projections
This commit is contained in:
parent
8cafe207cb
commit
90aa92def0
25 changed files with 390 additions and 167 deletions
|
|
@ -2,6 +2,8 @@
|
|||
// © 2018 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using System;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public class CenteredBoundingBox : BoundingBox
|
||||
|
|
@ -12,8 +14,8 @@ namespace MapControl
|
|||
public CenteredBoundingBox(Location center, double width, double height)
|
||||
{
|
||||
Center = center;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.width = Math.Max(width, 0d);
|
||||
this.height = Math.Max(height, 0d);
|
||||
}
|
||||
|
||||
public Location Center { get; private set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue