JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9652
  • Score
    100M100P100Q57236F
  • License BSD

Parses vector tiles

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);