Use named exports from ol/index.js
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @module ol/proj/EPSG3857
|
||||
*/
|
||||
import _ol_ from '../index.js';
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_math_ from '../math.js';
|
||||
import _ol_proj_Projection_ from '../proj/Projection.js';
|
||||
import _ol_proj_Units_ from '../proj/Units.js';
|
||||
@@ -29,7 +29,7 @@ _ol_proj_EPSG3857_.Projection_ = function(code) {
|
||||
}
|
||||
});
|
||||
};
|
||||
_ol_.inherits(_ol_proj_EPSG3857_.Projection_, _ol_proj_Projection_);
|
||||
inherits(_ol_proj_EPSG3857_.Projection_, _ol_proj_Projection_);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @module ol/proj/EPSG4326
|
||||
*/
|
||||
import _ol_ from '../index.js';
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_proj_Projection_ from '../proj/Projection.js';
|
||||
import _ol_proj_Units_ from '../proj/Units.js';
|
||||
var _ol_proj_EPSG4326_ = {};
|
||||
@@ -32,7 +32,7 @@ _ol_proj_EPSG4326_.Projection_ = function(code, opt_axisOrientation) {
|
||||
worldExtent: _ol_proj_EPSG4326_.EXTENT
|
||||
});
|
||||
};
|
||||
_ol_.inherits(_ol_proj_EPSG4326_.Projection_, _ol_proj_Projection_);
|
||||
inherits(_ol_proj_EPSG4326_.Projection_, _ol_proj_Projection_);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @module ol/proj/Projection
|
||||
*/
|
||||
import _ol_ from '../index.js';
|
||||
import {ENABLE_PROJ4JS} from '../index.js';
|
||||
import _ol_proj_Units_ from '../proj/Units.js';
|
||||
import _ol_proj_proj4_ from '../proj/proj4.js';
|
||||
|
||||
@@ -108,7 +108,7 @@ var _ol_proj_Projection_ = function(options) {
|
||||
this.metersPerUnit_ = options.metersPerUnit;
|
||||
|
||||
var code = options.code;
|
||||
if (_ol_.ENABLE_PROJ4JS) {
|
||||
if (ENABLE_PROJ4JS) {
|
||||
var proj4js = _ol_proj_proj4_.get();
|
||||
if (typeof proj4js == 'function') {
|
||||
var def = proj4js.defs(code);
|
||||
|
||||
Reference in New Issue
Block a user