add AVIF enum in JS client [#116]

This commit is contained in:
Brandon Liu
2023-06-22 10:08:34 +08:00
parent 07f8fd8a09
commit 10021809dc
6 changed files with 11 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ export default {
[TileType.Png, "png"],
[TileType.Jpeg, "jpg"],
[TileType.Webp, "webp"],
[TileType.Avif, "avif"],
]) {
if (p_header.tileType === pair[0] && ext !== pair[1]) {
if (p_header.tileType == TileType.Mvt && ext === "pbf") {