Fixed LatLonBox rotation

This commit is contained in:
ClemensFischer 2026-01-25 17:27:03 +01:00
parent 7208cc71bd
commit ceb19a9ae4
2 changed files with 6 additions and 4 deletions

View file

@ -306,7 +306,9 @@ namespace MapControl
element.Height = viewRect.Height;
element.Arrange(viewRect);
rotation += parentMap.ViewTransform.Rotation;
// LatLonBoxToMap rotation is counterclockwise, RotateTransform is clockwise.
//
rotation = (parentMap.ViewTransform.Rotation - rotation) % 360d;
if (element.RenderTransform is RotateTransform rotateTransform)
{