From 2526dc738c024ec313fd33dd7a352ad1a6de6566 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 5 Nov 2020 23:11:56 +0100 Subject: [PATCH] More straithgforward calculation of MAX_SAFE_Y Co-authored-by: MoonE --- src/ol/proj/epsg3857.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/proj/epsg3857.js b/src/ol/proj/epsg3857.js index 7dd27aa262..1a8ad31072 100644 --- a/src/ol/proj/epsg3857.js +++ b/src/ol/proj/epsg3857.js @@ -36,7 +36,7 @@ export const WORLD_EXTENT = [-180, -85, 180, 85]; * @const * @type {number} */ -export const MAX_SAFE_Y = RADIUS * Math.log(Math.tan((Math.PI * 180) / 360)); +export const MAX_SAFE_Y = RADIUS * Math.log(Math.tan(Math.PI / 2)); /** * @classdesc