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} diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index 6e4706dd71..662803be63 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: