Package Exports
- vector-tile
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vector-tile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
This library reads vector tiles and allows access to the layers and features.
Example
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);