mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Fixed normal cylindrical graticule
This commit is contained in:
parent
72407246ae
commit
8eb94733cd
2 changed files with 8 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue