Module types for ol/proj
This commit is contained in:
@@ -10,7 +10,7 @@ import TileWMS from '../src/ol/source/TileWMS.js';
|
||||
|
||||
// By default OpenLayers does not know about the EPSG:21781 (Swiss) projection.
|
||||
// So we create a projection instance for EPSG:21781 and pass it to
|
||||
// ol.proj.addProjection to make it available to the library for lookup by its
|
||||
// ol/proj~addProjection to make it available to the library for lookup by its
|
||||
// code.
|
||||
|
||||
const projection = new Projection({
|
||||
@@ -23,7 +23,7 @@ const projection = new Projection({
|
||||
addProjection(projection);
|
||||
|
||||
// We also declare EPSG:21781/EPSG:4326 transform functions. These functions
|
||||
// are necessary for the ScaleLine control and when calling ol.proj.transform
|
||||
// are necessary for the ScaleLine control and when calling ol/proj~transform
|
||||
// for setting the view's initial center (see below).
|
||||
|
||||
addCoordinateTransforms('EPSG:4326', projection,
|
||||
|
||||
Reference in New Issue
Block a user