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:
@@ -94,7 +94,7 @@ class VectorTile extends UrlTile {
|
|||||||
|
|
||||||
const tileGrid = options.tileGrid || createXYZ({
|
const tileGrid = options.tileGrid || createXYZ({
|
||||||
extent: extent,
|
extent: extent,
|
||||||
maxZoom: options.maxZoom || 22,
|
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 22,
|
||||||
minZoom: options.minZoom,
|
minZoom: options.minZoom,
|
||||||
tileSize: options.tileSize || 512
|
tileSize: options.tileSize || 512
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user