Removed CenteredBoundingBox

This commit is contained in:
ClemensFischer 2026-01-17 12:06:21 +01:00
parent 7f67e6fe17
commit 2817ecda7d
9 changed files with 19 additions and 75 deletions

View file

@ -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 &&