Use Math.cosh
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user