MapLibre Tiles
--tile-format=mlt writes MapLibre Tiles instead of Mapbox Vector Tiles, with the same features, into PMTiles, MBTiles or a directory. The tiles are 2 to 45% smaller than MVT on the benchmarks, and MapLibre GL JS 5.12 and later reads them from a vector source with encoding: "mlt".
manby -zg --drop-densest-as-needed --tile-format=mlt -o places.pmtiles places.geojson--mlt-profile chooses the encodings, by what will read the tiles.
| Profile | For |
|---|---|
web |
Every MapLibre GL JS that reads MapLibre Tiles, 5.12 and later, with attribute values of the same JavaScript types as from Mapbox Vector Tiles. The default. |
native |
MapLibre Native, with every encoding and with polygon triangles where they save the map more time than their bytes cost. MapLibre GL JS reads these from 6.0, with 64-bit integers as BigInt. |
min-size |
The fewest bytes. Features can be sorted within a layer, so their drawing order can differ. |
fast |
The quickest to encode. |
manby from pip, uv or the releases writes MLT. The encoder, mlt-core, needs Rust 1.98, so built from source MLT output is a cargo feature.
cargo +1.98.1 install manby --features mltmake test-golden-mlt checks the tiles against the MVT tiles of the same runs.