mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Fixed LatLonBox rotation
This commit is contained in:
parent
7208cc71bd
commit
ceb19a9ae4
2 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue