From 323eb3f2519a42f35ed3bbdedd89eef1df2e5808 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 19 Jul 2018 11:30:11 +0200 Subject: [PATCH] Fix reprojectionErrorThreshold property type --- src/ol/source/Stamen.js | 2 +- src/ol/source/TileImage.js | 2 +- src/ol/source/TileJSON.js | 2 +- src/ol/source/TileWMS.js | 2 +- src/ol/source/WMTS.js | 2 +- src/ol/source/XYZ.js | 2 +- src/ol/source/Zoomify.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/source/Stamen.js b/src/ol/source/Stamen.js index 20447bffda..3928e59992 100644 --- a/src/ol/source/Stamen.js +++ b/src/ol/source/Stamen.js @@ -95,7 +95,7 @@ const ProviderConfig = { * @property {number} [minZoom] Minimum zoom. * @property {number} [maxZoom] Maximum zoom. * @property {boolean} [opaque] Whether the layer is opaque. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {module:ol/Tile~LoadFunction} [tileLoadFunction] * Optional function to load a tile given a URL. The default is diff --git a/src/ol/source/TileImage.js b/src/ol/source/TileImage.js index 8ac058026a..369c2dfd42 100644 --- a/src/ol/source/TileImage.js +++ b/src/ol/source/TileImage.js @@ -24,7 +24,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js'; * {@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 {module:ol/proj~ProjectionLike} projection Projection. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {module:ol/source/State} [state] Source state. * @property {module:ol/ImageTile~TileClass} [tileClass] Class used to instantiate image tiles. diff --git a/src/ol/source/TileJSON.js b/src/ol/source/TileJSON.js index 2013e81079..28302b1d78 100644 --- a/src/ol/source/TileJSON.js +++ b/src/ol/source/TileJSON.js @@ -27,7 +27,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js'; * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * @property {boolean} [jsonp=false] Use JSONP with callback to load the TileJSON. * Useful when the server does not support CORS.. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {tileJSON} [tileJSON] TileJSON configuration for this source. * If not provided, `url` must be configured. diff --git a/src/ol/source/TileWMS.js b/src/ol/source/TileWMS.js index 13add52b03..9586c9bc0c 100644 --- a/src/ol/source/TileWMS.js +++ b/src/ol/source/TileWMS.js @@ -41,7 +41,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 {module:ol/proj~ProjectionLike} projection Projection. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {module:ol/ImageTile~TileClass} [tileClass] Class used to instantiate image tiles. * Default is {@link module:ol/ImageTile~TileClass}. diff --git a/src/ol/source/WMTS.js b/src/ol/source/WMTS.js index 0ec7a21a15..38c6d86678 100644 --- a/src/ol/source/WMTS.js +++ b/src/ol/source/WMTS.js @@ -22,7 +22,7 @@ import {appendParams} from '../uri.js'; * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * @property {module:ol/tilegrid/WMTS} tileGrid Tile grid. * @property {module:ol/proj~ProjectionLike} projection Projection. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * Higher values can increase reprojection performance, but decrease precision. * @property {module:ol/source/WMTSRequestEncoding|string} [requestEncoding='KVP'] Request encoding. * @property {string} layer Layer name as advertised in the WMTS capabilities. diff --git a/src/ol/source/XYZ.js b/src/ol/source/XYZ.js index ddabfaf5cf..ecc49e81ab 100644 --- a/src/ol/source/XYZ.js +++ b/src/ol/source/XYZ.js @@ -15,7 +15,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js'; * {@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 {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [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. * @property {number} [minZoom=0] Optional min zoom level. diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index b6f58be100..3b83cfeb0a 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -89,7 +89,7 @@ CustomTile.prototype.getImage = function() { * 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 {module:ol/proj~ProjectionLike} [projection] Projection. - * @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). + * @property {number} [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. * A base URL is the fixed part