More straithgforward calculation of MAX_SAFE_Y

Co-authored-by: MoonE <maxi_kroeg@web.de>
This commit is contained in:
Andreas Hocevar
2020-11-05 23:11:56 +01:00
committed by GitHub
parent 9804dc8fa3
commit 2526dc738c

View File

@@ -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