Correct the defaulting of maxZoom

Only default if undefined as maxZoom: 0 should be valid as it is for all other tile sources
This commit is contained in:
mike-000
2019-10-10 14:08:10 +01:00
committed by GitHub
parent 58b4b6eeea
commit 2a2cc40d42

View File

@@ -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
});