js v2 compatibility shim supports tile cancellation

This commit is contained in:
Brandon Liu
2022-10-05 17:22:37 +08:00
parent 64d7815149
commit b108831159
3 changed files with 11 additions and 9 deletions

View File

@@ -780,7 +780,7 @@ export class PMTiles {
// V2 COMPATIBILITY
if (header.specVersion < 3) {
return v2.getZxy(header, this.source, this.cache, z, x, y);
return v2.getZxy(header, this.source, this.cache, z, x, y, signal);
}
if (z < header.minZoom || z > header.maxZoom) {