From bd53ad7d8f577c5209d8ad68d94fbafed3ed7e88 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Mon, 3 Oct 2022 13:58:26 +0800 Subject: [PATCH] fix minZoom/maxZoom --- js/v3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/v3.ts b/js/v3.ts index bac032e..472a7df 100644 --- a/js/v3.ts +++ b/js/v3.ts @@ -549,7 +549,7 @@ export class PMTiles { const tile_id = zxyToTileId(z, x, y); const header = await this.cache.getHeader(this.source); - if (z < header.minzoom || z > header.maxzoom) { + if (z < header.minZoom || z > header.maxZoom) { return undefined; }