mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
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:
14
app/package-lock.json
generated
14
app/package-lock.json
generated
@@ -20,7 +20,7 @@
|
|||||||
"d3-zoom": "^3.0.0",
|
"d3-zoom": "^3.0.0",
|
||||||
"maplibre-gl": "5.13.0",
|
"maplibre-gl": "5.13.0",
|
||||||
"pbf": "^4.0.1",
|
"pbf": "^4.0.1",
|
||||||
"pmtiles": "^4.3.0",
|
"pmtiles": "^4.4.0",
|
||||||
"solid-js": "^1.9.5"
|
"solid-js": "^1.9.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -3474,9 +3474,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pmtiles": {
|
"node_modules/pmtiles": {
|
||||||
"version": "4.3.0",
|
"version": "4.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-4.4.0.tgz",
|
||||||
"integrity": "sha512-wnzQeSiYT/MyO63o7AVxwt7+uKqU0QUy2lHrivM7GvecNy0m1A4voVyGey7bujnEW5Hn+ZzLdvHPoFaqrOzbPA==",
|
"integrity": "sha512-tCLI1C5134MR54i8izUWhse0QUtO/EC33n9yWp1N5dYLLvyc197U0fkF5gAJhq1TdWO9Tvl+9hgvFvM0fR27Zg==",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fflate": "^0.8.2"
|
"fflate": "^0.8.2"
|
||||||
@@ -3634,9 +3634,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/seroval": {
|
"node_modules/seroval": {
|
||||||
"version": "1.2.1",
|
"version": "1.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.5.0.tgz",
|
||||||
"integrity": "sha512-yBxFFs3zmkvKNmR0pFSU//rIsYjuX418TnlDmc2weaq5XFDqDIV/NOMPBoLrbxjLH42p4UzRuXHryXh9dYcKcw==",
|
"integrity": "sha512-OE4cvmJ1uSPrKorFIH9/w/Qwuvi/IMcGbv5RKgcJ/zjA/IohDLU6SVaxFN9FwajbP7nsX0dQqMDes1whk3y+yw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"d3-zoom": "^3.0.0",
|
"d3-zoom": "^3.0.0",
|
||||||
"maplibre-gl": "5.13.0",
|
"maplibre-gl": "5.13.0",
|
||||||
"pbf": "^4.0.1",
|
"pbf": "^4.0.1",
|
||||||
"pmtiles": "^4.3.0",
|
"pmtiles": "^4.4.0",
|
||||||
"solid-js": "^1.9.5"
|
"solid-js": "^1.9.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export class PMTilesTileset {
|
|||||||
|
|
||||||
async isVector() {
|
async isVector() {
|
||||||
const h = await this.getHeader();
|
const h = await this.getHeader();
|
||||||
return h.tileType === TileType.Mvt;
|
return h.tileType === TileType.Mvt || h.tileType === TileType.Mlt;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getHeader() {
|
async getHeader() {
|
||||||
@@ -171,7 +171,11 @@ class TileJSONTileset implements Tileset {
|
|||||||
const j = await resp.json();
|
const j = await resp.json();
|
||||||
const template = j.tiles[0];
|
const template = j.tiles[0];
|
||||||
const pathname = new URL(template).pathname;
|
const pathname = new URL(template).pathname;
|
||||||
return pathname.endsWith(".pbf") || pathname.endsWith(".mvt");
|
return (
|
||||||
|
pathname.endsWith(".pbf") ||
|
||||||
|
pathname.endsWith(".mvt") ||
|
||||||
|
pathname.endsWith(".mlt")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getStateUrl() {
|
getStateUrl() {
|
||||||
|
|||||||
@@ -4,6 +4,4 @@
|
|||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
This library should be considered experimental.
|
For asynchronous I/O, see [aiopmtiles](https://github.com/developmentseed/aiopmtiles)
|
||||||
|
|
||||||
For async usage, see [aiopmtiles](https://github.com/developmentseed/aiopmtiles) (also experimental)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user