From 5fdac622efc71187aa1cd7d7171391599798de0b Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 3 Sep 2018 08:55:08 +0200 Subject: [PATCH] Add missing 'extent' property in VectorTile constructor --- src/ol/source/VectorTile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index 72c022acc0..42132f9dcb 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -14,6 +14,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid. * @typedef {Object} Options * @property {module:ol/source/Source~AttributionLike} [attributions] Attributions. * @property {number} [cacheSize=128] Cache size. + * @property {module:ol/extent~Extent} [extent] * @property {module:ol/format/Feature} [format] Feature format for tiles. Used and required by the default. * @property {boolean} [overlaps=true] This source may have overlapping geometries. Setting this * to `false` (e.g. for sources with polygons that represent administrative @@ -73,7 +74,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid. */ class VectorTile extends UrlTile { /** - * @param {module:ol/source/VectorTile~Options=} options Vector tile options. + * @param {!module:ol/source/VectorTile~Options} options Vector tile options. */ constructor(options) { const projection = options.projection || 'EPSG:3857';