Removed LatLonBox

The rotation behavior of a KML LatLonBox has no sufficiently precise specification.
This commit is contained in:
ClemensFischer 2026-01-27 20:12:57 +01:00
parent 6c89dfcdae
commit a0e82964ef
10 changed files with 75 additions and 144 deletions

View file

@ -286,17 +286,7 @@ namespace MapControl
private void ArrangeElement(FrameworkElement element, BoundingBox boundingBox)
{
Rect? mapRect;
Matrix? transform = null;
if (boundingBox is LatLonBox latLonBox)
{
(mapRect, transform) = parentMap.MapProjection.LatLonBoxToMap(latLonBox);
}
else
{
mapRect = parentMap.MapProjection.BoundingBoxToMap(boundingBox);
}
(var mapRect, var transform) = parentMap.MapProjection.BoundingBoxToMap(boundingBox);
if (mapRect.HasValue)
{