Module types for ol/proj
This commit is contained in:
2
examples/d3.js
vendored
2
examples/d3.js
vendored
@@ -37,7 +37,7 @@ d3.json('data/topojson/us.json', function(error, us) {
|
||||
* @param {number} resolution Resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
* @param {ol.Size} size Size.
|
||||
* @param {ol.proj.Projection} projection Projection.
|
||||
* @param {module:ol/proj/Projection~Projection} projection Projection.
|
||||
* @return {HTMLCanvasElement} A canvas element.
|
||||
*/
|
||||
const canvasFunction = function(extent, resolution, pixelRatio, size, projection) {
|
||||
|
||||
@@ -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