Use Math.cosh

This commit is contained in:
Tim Schaub
2022-07-27 15:09:43 -06:00
parent f2d989b299
commit f32517a77f
3 changed files with 1 additions and 51 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
*/
import Projection from './Projection.js';
import Units from './Units.js';
import {cosh} from '../math.js';
/**
* Radius of WGS84 sphere
@@ -54,7 +53,7 @@ class EPSG3857Projection extends Projection {
global: true,
worldExtent: WORLD_EXTENT,
getPointResolution: function (resolution, point) {
return resolution / cosh(point[1] / RADIUS);
return resolution / Math.cosh(point[1] / RADIUS);
},
});
}