App: update mlt, misc small fixes (#634)

* app: bump to pmtiles js v4.4.0 for mlt support [#633]
* update python README [#632]
* app: bump seroval dep
This commit is contained in:
Brandon Liu
2026-02-03 17:53:23 -05:00
committed by GitHub
parent 6f6c9c8697
commit 26a1b5ef03
4 changed files with 15 additions and 13 deletions

14
app/package-lock.json generated
View File

@@ -20,7 +20,7 @@
"d3-zoom": "^3.0.0",
"maplibre-gl": "5.13.0",
"pbf": "^4.0.1",
"pmtiles": "^4.3.0",
"pmtiles": "^4.4.0",
"solid-js": "^1.9.5"
},
"devDependencies": {
@@ -3474,9 +3474,9 @@
}
},
"node_modules/pmtiles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-4.3.0.tgz",
"integrity": "sha512-wnzQeSiYT/MyO63o7AVxwt7+uKqU0QUy2lHrivM7GvecNy0m1A4voVyGey7bujnEW5Hn+ZzLdvHPoFaqrOzbPA==",
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-4.4.0.tgz",
"integrity": "sha512-tCLI1C5134MR54i8izUWhse0QUtO/EC33n9yWp1N5dYLLvyc197U0fkF5gAJhq1TdWO9Tvl+9hgvFvM0fR27Zg==",
"license": "BSD-3-Clause",
"dependencies": {
"fflate": "^0.8.2"
@@ -3634,9 +3634,9 @@
}
},
"node_modules/seroval": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.2.1.tgz",
"integrity": "sha512-yBxFFs3zmkvKNmR0pFSU//rIsYjuX418TnlDmc2weaq5XFDqDIV/NOMPBoLrbxjLH42p4UzRuXHryXh9dYcKcw==",
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.5.0.tgz",
"integrity": "sha512-OE4cvmJ1uSPrKorFIH9/w/Qwuvi/IMcGbv5RKgcJ/zjA/IohDLU6SVaxFN9FwajbP7nsX0dQqMDes1whk3y+yw==",
"license": "MIT",
"engines": {
"node": ">=10"

View File

@@ -23,7 +23,7 @@
"d3-zoom": "^3.0.0",
"maplibre-gl": "5.13.0",
"pbf": "^4.0.1",
"pmtiles": "^4.3.0",
"pmtiles": "^4.4.0",
"solid-js": "^1.9.5"
},
"devDependencies": {

View File

@@ -54,7 +54,7 @@ export class PMTilesTileset {
async isVector() {
const h = await this.getHeader();
return h.tileType === TileType.Mvt;
return h.tileType === TileType.Mvt || h.tileType === TileType.Mlt;
}
async getHeader() {
@@ -171,7 +171,11 @@ class TileJSONTileset implements Tileset {
const j = await resp.json();
const template = j.tiles[0];
const pathname = new URL(template).pathname;
return pathname.endsWith(".pbf") || pathname.endsWith(".mvt");
return (
pathname.endsWith(".pbf") ||
pathname.endsWith(".mvt") ||
pathname.endsWith(".mlt")
);
}
getStateUrl() {