Named exports from ol/proj/epsg3857
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import {getDistance} from './sphere.js';
|
||||
import {applyTransform} from './extent.js';
|
||||
import {modulo} from './math.js';
|
||||
import EPSG3857 from './proj/EPSG3857.js';
|
||||
import {toEPSG4326, fromEPSG4326, PROJECTIONS as EPSG3857_PROJECTIONS} from './proj/epsg3857.js';
|
||||
import EPSG4326 from './proj/EPSG4326.js';
|
||||
import Projection from './proj/Projection.js';
|
||||
import Units from './proj/Units.js';
|
||||
@@ -438,15 +438,15 @@ export function transformWithProjections(point, sourceProjection, destinationPro
|
||||
export function addCommon() {
|
||||
// Add transformations that don't alter coordinates to convert within set of
|
||||
// projections with equal meaning.
|
||||
addEquivalentProjections(EPSG3857.PROJECTIONS);
|
||||
addEquivalentProjections(EPSG3857_PROJECTIONS);
|
||||
addEquivalentProjections(EPSG4326.PROJECTIONS);
|
||||
// Add transformations to convert EPSG:4326 like coordinates to EPSG:3857 like
|
||||
// coordinates and back.
|
||||
addEquivalentTransforms(
|
||||
EPSG4326.PROJECTIONS,
|
||||
EPSG3857.PROJECTIONS,
|
||||
EPSG3857.fromEPSG4326,
|
||||
EPSG3857.toEPSG4326);
|
||||
EPSG3857_PROJECTIONS,
|
||||
fromEPSG4326,
|
||||
toEPSG4326);
|
||||
}
|
||||
|
||||
addCommon();
|
||||
|
||||
Reference in New Issue
Block a user