This library reads vector tiles and allows access to the layers and features.
var tile = new VectorTile(data);
// Contains a map of all layers
tile.layers;
var landuse = tile.layers.landuse;
// Amount of features in this layer
landuse.length;
// Returns the first feature
landuse.feature(0);
- Node.js v0.10.x or v0.8.x
To install:
npm install vector-tile