This package contains a JavaScript decoder for the experimental MapLibre Tile (MLT) vector tile format.
npm install @maplibre/mltThis package contains a JavaScript decoder for the experimental MapLibre Tile (MLT) vector tile format.
npm install @maplibre/maplibre-tile-spec
To decode a tile, you will want to load MltDecoder:
``js
import { decodeTile } from '@maplibre/maplibre-tile-spec';
const data = fs.readFileSync(tilePath);
const tile = decodeTile(data);
`Contents
Code is in src/.
Tests are in test/unit/. Run tests by running npm run test`.
currently not integrated