Fixed normal cylindrical graticule

This commit is contained in:
ClemensFischer 2026-02-07 13:47:33 +01:00
parent 72407246ae
commit 8eb94733cd
2 changed files with 8 additions and 7 deletions

View file

@ -59,7 +59,7 @@ namespace MapControl
public void SetTransform(Point mapCenter, Point viewCenter, double scale, double rotation)
{
Scale = scale;
Rotation = ((rotation % 360d) + 360d) % 360d;
Rotation = (rotation % 360d + 540d) % 360d - 180d;
var transform = new Matrix(scale, 0d, 0d, -scale, -scale * mapCenter.X, scale * mapCenter.Y);
transform.Rotate(Rotation);