From d10cff3357c49ed68abd51606152f2a6a423a6e6 Mon Sep 17 00:00:00 2001 From: Alexander Parshin Date: Tue, 10 Sep 2013 10:47:52 +0400 Subject: [PATCH] Fixing wrong EPGS3395 transformation --- src/geo/crs/CRS.EPSG3395.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geo/crs/CRS.EPSG3395.js b/src/geo/crs/CRS.EPSG3395.js index ed03562b..786dec91 100644 --- a/src/geo/crs/CRS.EPSG3395.js +++ b/src/geo/crs/CRS.EPSG3395.js @@ -7,8 +7,8 @@ L.CRS.EPSG3395 = L.extend({}, L.CRS, { transformation: (function () { var m = L.Projection.Mercator, r = m.R_MAJOR, - r2 = m.R_MINOR; + scale = 0.5 / (Math.PI * r); - return new L.Transformation(0.5 / (Math.PI * r), 0.5, -0.5 / (Math.PI * r2), 0.5); + return new L.Transformation(scale, 0.5, -scale, 0.5); }()) });