fix minZoom/maxZoom

This commit is contained in:
Brandon Liu
2022-10-03 13:58:26 +08:00
parent 92c1c8bbdf
commit bd53ad7d8f

View File

@@ -549,7 +549,7 @@ export class PMTiles {
const tile_id = zxyToTileId(z, x, y); const tile_id = zxyToTileId(z, x, y);
const header = await this.cache.getHeader(this.source); const header = await this.cache.getHeader(this.source);
if (z < header.minzoom || z > header.maxzoom) { if (z < header.minZoom || z > header.maxZoom) {
return undefined; return undefined;
} }