mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
fix minZoom/maxZoom
This commit is contained in:
2
js/v3.ts
2
js/v3.ts
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user