diff --git a/app/package-lock.json b/app/package-lock.json index c7af256..f468293 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -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" diff --git a/app/package.json b/app/package.json index eb628be..111cc7d 100644 --- a/app/package.json +++ b/app/package.json @@ -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": { diff --git a/app/src/tileset.ts b/app/src/tileset.ts index 304f930..df5ebdc 100644 --- a/app/src/tileset.ts +++ b/app/src/tileset.ts @@ -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() { diff --git a/python/pmtiles/README.md b/python/pmtiles/README.md index b69580d..7e3fdb5 100644 --- a/python/pmtiles/README.md +++ b/python/pmtiles/README.md @@ -4,6 +4,4 @@ ## Status -This library should be considered experimental. - -For async usage, see [aiopmtiles](https://github.com/developmentseed/aiopmtiles) (also experimental) +For asynchronous I/O, see [aiopmtiles](https://github.com/developmentseed/aiopmtiles)