mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Removed CenteredBoundingBox
This commit is contained in:
parent
7f67e6fe17
commit
2817ecda7d
9 changed files with 19 additions and 75 deletions
|
|
@ -122,8 +122,8 @@ namespace MapControl
|
|||
{
|
||||
Rect? rect = null;
|
||||
var rotation = 0d;
|
||||
var centerLatitude = latLonBox.Center.Latitude;
|
||||
var centerLongitude = latLonBox.Center.Longitude;
|
||||
var centerLatitude = (latLonBox.South + latLonBox.North) / 2d;
|
||||
var centerLongitude = (latLonBox.West + latLonBox.East) / 2d;
|
||||
Point? center, north, south, west, east;
|
||||
|
||||
if ((center = LocationToMap(centerLatitude, centerLongitude)).HasValue &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue