From 30bbbb9ce2b6daf8282b65bdcd6dcc29c0ef5aa5 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Wed, 11 Sep 2024 18:33:16 +0200 Subject: [PATCH] Update MapProjection.cs --- MapControl/Shared/MapProjection.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MapControl/Shared/MapProjection.cs b/MapControl/Shared/MapProjection.cs index ecbf65d5..5addacf5 100644 --- a/MapControl/Shared/MapProjection.cs +++ b/MapControl/Shared/MapProjection.cs @@ -122,7 +122,9 @@ namespace MapControl var x = center.Value.X - width / 2d; var y = center.Value.Y - height / 2d; - // angles measured relative to horizontal and vertical axis + // Additional rotation caused by the projection, calculated as mean value + // of the two angles measured relative to the east and north axis. + // var r1 = (Math.Atan2(dy1, dx1) * 180d / Math.PI + 180d) % 360d - 180d; var r2 = (Math.Atan2(-dx2, dy2) * 180d / Math.PI + 180d) % 360d - 180d;