Updated MapProjection

This commit is contained in:
ClemensFischer 2025-12-30 00:26:08 +01:00
parent 0d556e6b14
commit 5d8f1b5ff0
3 changed files with 11 additions and 7 deletions

View file

@ -293,10 +293,10 @@ namespace MapControl
{
var rotatedRect = parentMap.MapProjection.LatLonBoxToMap(latLonBox);
if (rotatedRect != null)
if (rotatedRect.HasValue)
{
mapRect = rotatedRect.Item1;
rotation = -rotatedRect.Item2;
mapRect = rotatedRect.Value.Item1;
rotation = -rotatedRect.Value.Item2;
}
}
else