mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Fix WinUI/UWP Matrix
This commit is contained in:
parent
448177418e
commit
c404fd2a90
2 changed files with 16 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ namespace MapControl
|
|||
public void SetTransform(Point mapCenter, Point viewCenter, double scale, double rotation)
|
||||
{
|
||||
Scale = scale;
|
||||
Rotation = rotation;
|
||||
Rotation = ((rotation % 360d) + 360d) % 360d;
|
||||
|
||||
var transform = new Matrix(Scale, 0d, 0d, -Scale, -Scale * mapCenter.X, Scale * mapCenter.Y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue