vt2pbf

Convert Mapbox Vector Tiles to binary protobuf.


Keywords
vector tile, vt-pbf
License
MIT
Install
npm install vt2pbf@0.2.2

Documentation

vt2pbf NPM version Build Status Dependency Status Coverage percentage

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