Convert Mapbox Vector Tiles to binary protobuf.
Installation
$ npm install --save vt2pbf
Usage
const vt2pbf = require('vt2pbf');
const layers = {
geojsonLayer: tile
};
// this is default options
const options = {
version: 2,
extent: 4096
};
const buffer = vt2pbf(layers, options);
console.log(buffer);
License
MIT © wsw0108