From eb902974f3734088861203a4efb37d3e23634250 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 8 Jun 2018 16:58:10 +0200 Subject: [PATCH 1/2] Add missing properties in option typedef --- src/ol/source/VectorTile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index 964182a0ba..7a62cd6101 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -23,6 +23,9 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid. * @property {module:ol/source/State} [state] Source state. * @property {module:ol/VectorTile~TileClass} [tileClass] Class used to instantiate image tiles. * Default is {@link module:ol/VectorTile}. + * @property {number} [maxZoom=22] Optional max zoom level. + * @property {number} [minZoom] Optional min zoom level. + * @property {number|module:ol/size~Size} [tileSize=512] Optional tile size. * @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid. * @property {module:ol/Tile~LoadFunction} [tileLoadFunction] * Optional function to load a tile given a URL. Could look like this: From 1c897c33eadd68bb412d9027c555a3fc9e555ec8 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 6 Jun 2018 17:12:20 +0200 Subject: [PATCH 2/2] Remove extra parameters passed to createRenderer --- src/ol/PluggableMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/PluggableMap.js b/src/ol/PluggableMap.js index 4de806fefc..f8b2d8246a 100644 --- a/src/ol/PluggableMap.js +++ b/src/ol/PluggableMap.js @@ -336,7 +336,7 @@ const PluggableMap = function(options) { * @type {module:ol/renderer/Map} * @private */ - this.renderer_ = this.createRenderer(this.viewport_, this); + this.renderer_ = this.createRenderer(); /** * @type {function(Event)|undefined}