rename _ol_math_ imports

This commit is contained in:
Ron Young
2017-12-20 19:31:00 -06:00
parent 8ef8f59cd9
commit a11208d126
36 changed files with 180 additions and 183 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/proj/EPSG3857
*/
import {inherits} from '../index.js';
import _ol_math_ from '../math.js';
import {cosh} from '../math.js';
import _ol_proj_Projection_ from '../proj/Projection.js';
import _ol_proj_Units_ from '../proj/Units.js';
var _ol_proj_EPSG3857_ = {};
@@ -25,7 +25,7 @@ _ol_proj_EPSG3857_.Projection_ = function(code) {
global: true,
worldExtent: _ol_proj_EPSG3857_.WORLD_EXTENT,
getPointResolution: function(resolution, point) {
return resolution / _ol_math_.cosh(point[1] / _ol_proj_EPSG3857_.RADIUS);
return resolution / cosh(point[1] / _ol_proj_EPSG3857_.RADIUS);
}
});
};