From 0f1cef96fb57aa881b3760ebbb38f1777287c9eb Mon Sep 17 00:00:00 2001 From: Florent gravin Date: Wed, 4 Apr 2018 10:35:51 +0200 Subject: [PATCH] Replace ol.ProjectionLike by module:ol/proj~ProjectionLike in ol/source --- src/ol/source/CartoDB.js | 2 +- src/ol/source/Cluster.js | 2 +- src/ol/source/ImageCanvas.js | 2 +- src/ol/source/ImageMapGuide.js | 2 +- src/ol/source/ImageStatic.js | 2 +- src/ol/source/ImageWMS.js | 2 +- src/ol/source/TileDebug.js | 2 +- src/ol/source/TileImage.js | 2 +- src/ol/source/TileWMS.js | 2 +- src/ol/source/VectorTile.js | 2 +- src/ol/source/WMTS.js | 2 +- src/ol/source/XYZ.js | 2 +- src/ol/source/Zoomify.js | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ol/source/CartoDB.js b/src/ol/source/CartoDB.js index d9e7a257de..5f06d806c8 100644 --- a/src/ol/source/CartoDB.js +++ b/src/ol/source/CartoDB.js @@ -14,7 +14,7 @@ import XYZ from '../source/XYZ.js'; * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * access pixel data with the Canvas renderer. See * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. - * @property {ol.ProjectionLike} [projection='EPSG:3857'] Projection. + * @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection. * @property {number} [maxZoom=18] Max zoom. * @property {number} [minZoom] Minimum zoom. * @property {boolean} [wrapX=true] Whether to wrap the world horizontally. diff --git a/src/ol/source/Cluster.js b/src/ol/source/Cluster.js index 0001a3c008..c346155a2e 100644 --- a/src/ol/source/Cluster.js +++ b/src/ol/source/Cluster.js @@ -31,7 +31,7 @@ import VectorSource from '../source/Vector.js'; * ``` * See {@link module:ol/geom/Polygon~Polygon#getInteriorPoint} for a way to get a cluster * calculation point for polygons. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {ol.source.Vector} source Source. * @property {boolean} [wrapX=true] Whether to wrap the world horizontally. */ diff --git a/src/ol/source/ImageCanvas.js b/src/ol/source/ImageCanvas.js index fa42120fb5..2d899ffaae 100644 --- a/src/ol/source/ImageCanvas.js +++ b/src/ol/source/ImageCanvas.js @@ -18,7 +18,7 @@ import ImageSource from '../source/Image.js'; * the value returned by the function is later changed then * `dispatchChangeEvent` should be called on the source for the source to * invalidate the current cached image. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {number} [ratio=1.5] Ratio. 1 means canvases are the size of the map viewport, 2 means twice the * width and height of the map viewport, and so on. Must be `1` or higher. * @property {Array.} [resolutions] Resolutions. diff --git a/src/ol/source/ImageMapGuide.js b/src/ol/source/ImageMapGuide.js index 10cc47155c..07aedeb7dd 100644 --- a/src/ol/source/ImageMapGuide.js +++ b/src/ol/source/ImageMapGuide.js @@ -18,7 +18,7 @@ import {appendParams} from '../uri.js'; * @property {boolean} [hidpi=true] Use the `ol.Map#pixelRatio` value when requesting * the image from the remote server. * @property {boolean} [useOverlay] If `true`, will use `GETDYNAMICMAPOVERLAYIMAGE`. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {number} [ratio=1] Ratio. `1` means image requests are the size of the map viewport, `2` means * twice the width and height of the map viewport, and so on. Must be `1` or higher. * @property {Array.} [resolutions] Resolutions. diff --git a/src/ol/source/ImageStatic.js b/src/ol/source/ImageStatic.js index de12dd33d9..4ab5d3a575 100644 --- a/src/ol/source/ImageStatic.js +++ b/src/ol/source/ImageStatic.js @@ -21,7 +21,7 @@ import ImageSource, {defaultImageLoadFunction} from '../source/Image.js'; * @property {ol.Extent} [imageExtent] Extent of the image in map coordinates. * This is the [left, bottom, right, top] map coordinates of your image. * @property {ol.ImageLoadFunctionType} [imageLoadFunction] Optional function to load an image given a URL. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {ol.Size} [imageSize] Size of the image in pixels. Usually the image size is auto-detected, so this * only needs to be set if auto-detection fails for some reason. * @property {string} url Image URL. diff --git a/src/ol/source/ImageWMS.js b/src/ol/source/ImageWMS.js index 6cab6bd7a5..d33edec1b9 100644 --- a/src/ol/source/ImageWMS.js +++ b/src/ol/source/ImageWMS.js @@ -33,7 +33,7 @@ import {appendParams} from '../uri.js'; * At least a `LAYERS` param is required. `STYLES` is * `''` by default. `VERSION` is `1.3.0` by default. `WIDTH`, `HEIGHT`, `BBOX` * and `CRS` (`SRS` for WMS version < 1.3.0) will be set dynamically. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {number} [ratio=1.5] Ratio. `1` means image requests are the size of the map viewport, `2` means * twice the width and height of the map viewport, and so on. Must be `1` or * higher. diff --git a/src/ol/source/TileDebug.js b/src/ol/source/TileDebug.js index b6ac62b4b8..ac5ac6bc18 100644 --- a/src/ol/source/TileDebug.js +++ b/src/ol/source/TileDebug.js @@ -77,7 +77,7 @@ LabeledTile.prototype.load = function() {}; /** * @typedef {Object} Options - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {ol.tilegrid.TileGrid} [tileGrid] Tile grid. * @property {boolean} [wrapX=true] Whether to wrap the world horizontally. */ diff --git a/src/ol/source/TileImage.js b/src/ol/source/TileImage.js index ecc32656de..68b81ad6b4 100644 --- a/src/ol/source/TileImage.js +++ b/src/ol/source/TileImage.js @@ -23,7 +23,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js'; * access pixel data with the Canvas renderer. See * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * @property {boolean} [opaque=true] Whether the layer is opaque. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {ol.source.State} [state] Source state. diff --git a/src/ol/source/TileWMS.js b/src/ol/source/TileWMS.js index 1583a8f03a..73210f11e3 100644 --- a/src/ol/source/TileWMS.js +++ b/src/ol/source/TileWMS.js @@ -40,7 +40,7 @@ import {appendParams} from '../uri.js'; * this. See http://mapserver.org/output/tile_mode.html. * @property {boolean} [hidpi=true] Use the `ol.Map#pixelRatio` value when requesting * the image from the remote server. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {function(new: ol.ImageTile, ol.TileCoord, diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index 1df6310cc9..4bdea0dcea 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -19,7 +19,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid. * to `false` (e.g. for sources with polygons that represent administrative * boundaries or TopoJSON sources) allows the renderer to optimise fill and * stroke operations. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {ol.source.State} [state] Source state. * @property {function(new: ol.VectorTile, ol.TileCoord, * ol.TileState, string, ?string, diff --git a/src/ol/source/WMTS.js b/src/ol/source/WMTS.js index 841c11bb16..983693589a 100644 --- a/src/ol/source/WMTS.js +++ b/src/ol/source/WMTS.js @@ -21,7 +21,7 @@ import {appendParams} from '../uri.js'; * access pixel data with the Canvas renderer. See * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * @property {ol.tilegrid.WMTS} tileGrid Tile grid. - * @property {ol.ProjectionLike} projection Projection. + * @property {module:ol/proj~ProjectionLike} projection Projection. * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {ol.source.WMTSRequestEncoding|string} [requestEncoding='KVP'] Request encoding. diff --git a/src/ol/source/XYZ.js b/src/ol/source/XYZ.js index b17c5de682..fe4c8846d2 100644 --- a/src/ol/source/XYZ.js +++ b/src/ol/source/XYZ.js @@ -14,7 +14,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js'; * access pixel data with the Canvas renderer. See * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * @property {boolean} [opaque=true] Whether the layer is opaque. - * @property {ol.ProjectionLike} [projection='EPSG:3857'] Projection. + * @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection. * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {number} [maxZoom=18] Optional max zoom level. diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index 29184f42e5..59cc753fed 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -87,7 +87,7 @@ CustomTile.prototype.getImage = function() { * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * access pixel data with the Canvas renderer. See * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. - * @property {ol.ProjectionLike} [projection] Projection. + * @property {module:ol/proj~ProjectionLike} [projection] Projection. * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {string} [url] URL template or base URL of the Zoomify service.