From 8afa480ec0dd77b091979e11e61cf3555f0e412b Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Tue, 3 Feb 2026 20:46:32 +0100 Subject: [PATCH] Update WorldMercatorProjection.cs --- MapControl/Shared/WorldMercatorProjection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapControl/Shared/WorldMercatorProjection.cs b/MapControl/Shared/WorldMercatorProjection.cs index c1560320..07a42564 100644 --- a/MapControl/Shared/WorldMercatorProjection.cs +++ b/MapControl/Shared/WorldMercatorProjection.cs @@ -55,9 +55,9 @@ namespace MapControl var phi = latitude * Math.PI / 180d; var e = Math.Sqrt((2d - Flattening) * Flattening); var eSinPhi = e * Math.Sin(phi); - var f = Math.Pow((1d - eSinPhi) / (1d + eSinPhi), e / 2d); + var p = Math.Pow((1d - eSinPhi) / (1d + eSinPhi), e / 2d); - y = EquatorialRadius * Math.Log(Math.Tan(phi / 2d + Math.PI / 4d) * f); // p.44 (7-7) + y = EquatorialRadius * Math.Log(Math.Tan(phi / 2d + Math.PI / 4d) * p); // p.44 (7-7) } return new Point(x, y);