@maplibre/mlt
This package contains a JavaScript encoder and decoder for the experimental MapLibre Tile (MLT) vector tile format.
Last updated 2 months ago by GitHub Actions .
(MIT OR Apache-2.0) · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @maplibre/mlt 
SYNC missed versions from official npm registry.

maplibre-tile-spec

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

Install

npm install @maplibre/mlt

Quickstart

Decode a tile

import { decodeTile } from '@maplibre/mlt';

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

Encode a tile

import { encodeTile, type Layer } from '@maplibre/mlt';

const layers: Layer[] = [
    {
        name: 'places',
        features: [
            {
                id: 1,
                geometry: { type: 'Point', coordinates: [10, 20] },
                properties: { name: 'Example' },
            },
        ],
    },
];

const data = encodeTile(layers);

Contents

Code

Code is in src/.

Tests

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

Current Tags

  • 1.3.0                                ...           latest (2 months ago)
  • 0.0.1-alpha.12                                ...           next (a year ago)

23 Versions

  • 1.3.0                                ...           2 months ago
  • 1.2.1                                ...           3 months ago
  • 1.2.0                                ...           3 months ago
  • 1.1.12                                ...           5 months ago
  • 1.1.11                                ...           6 months ago
  • 1.1.10                                ...           6 months ago
  • 1.1.9                                ...           7 months ago
  • 1.1.8                                ...           8 months ago
  • 1.1.7                                ...           9 months ago
  • 1.1.6                                ...           10 months ago
  • 1.1.5                                ...           10 months ago
  • 1.1.4                                ...           10 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.1-alpha.13                                ...           a year ago
  • 0.0.1-alpha.12                                ...           a year ago
  • 0.0.1-alpha.11                                ...           a year ago
  • 0.0.1-alpha.10                                ...           a year ago
  • 0.0.1-alpha.9                                ...           a year ago
  • 0.0.1-alpha.7                                ...           a year ago
  • 0.0.1-alpha.6                                ...           a year ago
Downloads
Total 113
Today 0
This Week 4
This Month 70
Last Day 0
Last Week 30
Last Month 43
Dependencies (1)
Dev Dependencies (16)

© 2010 - cnpmjs.org x YWFE | Home | YWFE