glam/node_modules/.pnpm/@maplibre+mlt@1.1.2/node_modules/@maplibre/mlt
2025-12-21 00:01:54 +01:00
..
LICENSE.txt remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
package.json remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
README.md remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00

maplibre-tile-spec

This package contains a JavaScript decoder for the experimental MapLibre Tile (MLT) vector tile format.

Install

npm install @maplibre/maplibre-tile-spec

Quickstart

To decode a tile, you will want to load MltDecoder:

import { decodeTile } from '@maplibre/maplibre-tile-spec';

const data = fs.readFileSync(tilePath);
const tile = decodeTile(data);

Contents

Code

Code is in src/.

Tests

Tests are in test/unit/. Run tests by running npm run test. currently not integrated