From 6f6c9c8697f26c5394dc351f04cec08656e905b6 Mon Sep 17 00:00:00 2001 From: Anson Chung <58066418+anscg@users.noreply.github.com> Date: Wed, 4 Feb 2026 06:24:42 +0800 Subject: [PATCH] Implement MLT (#633) * Add MLT tile type * MLT code implementation * fix build - /app needs to wait for new pmtiles version on npm * update CHANGELOGs and python, js versions [#596, #633] --------- Co-authored-by: Michael Barry Co-authored-by: Brandon Liu Co-authored-by: Brandon Liu --- cpp/pmtiles.hpp | 1 + js/CHANGELOG.md | 3 +++ js/examples/leaflet.html | 2 +- js/examples/maplibre.html | 2 +- js/examples/maplibre_advanced.html | 2 +- js/examples/maplibre_raster_dem.html | 2 +- js/package-lock.json | 4 ++-- js/package.json | 2 +- js/src/index.ts | 2 ++ js/test/v3.test.ts | 1 + python/pmtiles/pmtiles/tile.py | 1 + python/pmtiles/setup.py | 2 +- spec/v3/CHANGELOG.md | 3 +++ 13 files changed, 19 insertions(+), 8 deletions(-) diff --git a/cpp/pmtiles.hpp b/cpp/pmtiles.hpp index 2819f33..b340f58 100644 --- a/cpp/pmtiles.hpp +++ b/cpp/pmtiles.hpp @@ -18,6 +18,7 @@ const uint8_t TILETYPE_PNG = 0x2; const uint8_t TILETYPE_JPEG = 0x3; const uint8_t TILETYPE_WEBP = 0x4; const uint8_t TILETYPE_AVIF = 0x5; +const uint8_t TILETYPE_MLT = 0x6; const uint8_t COMPRESSION_UNKNOWN = 0x0; const uint8_t COMPRESSION_NONE = 0x1; diff --git a/js/CHANGELOG.md b/js/CHANGELOG.md index aea7568..1fefe4d 100644 --- a/js/CHANGELOG.md +++ b/js/CHANGELOG.md @@ -1,3 +1,6 @@ +4.4.0 +* add [MapLibre Vector Tile](https://github.com/maplibre/maplibre-tile-spec) `.mlt` support by @anscg [#633] + 4.3.2 * fix leafletRasterLayer empty images: set `display: none` diff --git a/js/examples/leaflet.html b/js/examples/leaflet.html index 1972e75..09015d9 100644 --- a/js/examples/leaflet.html +++ b/js/examples/leaflet.html @@ -4,7 +4,7 @@ - +