Merge pull request #10111 from mike-000/patch-6

Correct the defaulting of ol/source/VectorTile maxZoom
This commit is contained in:
Frédéric Junod
2019-10-10 16:05:51 +02:00
committed by GitHub

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