0.0.2 • Published 3 months ago
get-vector-tile v0.0.2
Get-vector-tile
Fetches a vector tile from a web endpoint, and returns its contents as GeoJSON. Based on @mapbox/vt2geojson. Does less, but in a more modern way.
Usage:
import getVectorTile from 'get-vector-tile';
const features = getVectorTile({
uri: 'https://example.com/tiles/{z}/{x}/{y}.pbf',
layer: 'trees',
z: 1
x: 2,
y: 3,
// headers: { Authorization: ... }
});