From 2a2cc40d4278ce099636dfc4007f384748196a99 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Thu, 10 Oct 2019 14:08:10 +0100 Subject: [PATCH] Correct the defaulting of maxZoom Only default if undefined as maxZoom: 0 should be valid as it is for all other tile sources --- src/ol/source/VectorTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });