Skip to main content

MLT module

Decode compact vector tiles without changing the tile path.

@loaders.gl/tiles/mlt supports MapLibre Tile vector data through a direct loader and a URL-addressed source. Both paths use the MapLibre decoder while fitting the normal loaders.gl data contracts.

The MLT module boundary

Choose direct decoding or a tile source.

Use the loader when the tile bytes are already available. Use the source when the application needs URL addressing, metadata, and repeated tile requests.

Loader

Decode one MapLibre Tile payload

Source

Resolve and request URL-addressed tiles

Geometry

GeoJSON-style or binary geometry output

Decoder

@maplibre/mlt implementation underneath

Detailed guide

Loader and source details

The reference below covers installation, entry points, examples, output choices, and the upstream decoder relationship.

From-v4.4

Support for loading MapLibre Tile vector tiles.

Installation​

npm install @loaders.gl/tiles
npm install @loaders.gl/core

Loaders and Sources​

Loader / SourceDescription
MLTWriterEncodes tile-local GeoArrow WKB and scalar columns as MLT v1. From v5.0.
MLTLoaderLoads MapLibre Tile vector tiles.
MLTLoaderLoads MapLibre Tile data as a tile source.

Examples​

Attribution​

The MLTLoader uses the @maplibre/mlt package for tile decoding.