Initial commit
This commit is contained in:
28
node_modules/@maplibre/mlt/README.md
generated
vendored
Normal file
28
node_modules/@maplibre/mlt/README.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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`:
|
||||
|
||||
```js
|
||||
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
|
||||
Reference in New Issue
Block a user