More straithgforward calculation of MAX_SAFE_Y
Co-authored-by: MoonE <maxi_kroeg@web.de>
This commit is contained in:
@@ -36,7 +36,7 @@ export const WORLD_EXTENT = [-180, -85, 180, 85];
|
|||||||
* @const
|
* @const
|
||||||
* @type {number}
|
* @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
|
* @classdesc
|
||||||
|
|||||||
Reference in New Issue
Block a user