mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-03-22 06:49:37 +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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user