A Vector Tile may parse either Mapbox or OpenVector Tile Layers The input is a Uint8Array that has encoded protobuffer messages.
Protobuf.
Example:
import { VectorTile } from 'open-vector-tile';const vectorTile = new VectorTile(data);const { landuse } = vectorTile.layers;const firstFeature = landuse.features(0); Copy
import { VectorTile } from 'open-vector-tile';const vectorTile = new VectorTile(data);const { landuse } = vectorTile.layers;const firstFeature = landuse.features(0);
the input data to parse
the size of the data, leave blank to parse the entire data
Read the elevation data if it exists
A Vector Tile may parse either Mapbox or OpenVector Tile Layers The input is a Uint8Array that has encoded protobuffer messages.
See
Protobuf.
Example: