mvt-reader
Features
- Decodes and reads Mapbox vector tiles in Rust
- Provides an API for accessing layer names and features within a vector tile
- Can be used as a WebAssembly module in JavaScript (enabled by the
wasmfeature)
Build the project
Run tests
&&
Usage
To use the mvt-reader library in your Rust project, add the following to your Cargo.toml file:
[]
= "1.6.0"
Then, you can import and use the library in your code:
use ;
WebAssembly Usage
To use the mvt-reader library as a WebAssembly module in JavaScript, you can install it with npm and use it in your JavaScript code:
const = require
const fs = require
// Example usage
const reader =
const layerNames = reader.
console.log
// More code...
License
This project is licensed under the MIT License.