diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index e47c611241..497051b41e 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -94,7 +94,7 @@ class VectorTile extends UrlTile { const tileGrid = options.tileGrid || createXYZ({ extent: extent, - maxZoom: options.maxZoom || 22, + maxZoom: options.maxZoom !== undefined ? options.maxZoom : 22, minZoom: options.minZoom, tileSize: options.tileSize || 512 });