Expand description
Mapbox Vector Tile (MVT 2.1) decoding.
Decodes the protobuf with prost and expands geometry commands into tile-
space coordinates (0..extent, y down). Polygons are grouped into
exterior-ring-plus-holes using ring winding, as the spec requires.
Structs§
Enums§
Constants§
- GEOJSON_
LAYER - Layer name of GeoJSON source tiles (MapLibre’s GeoJSONWrapper).
Functions§
- decode
- Decode an MVT. Gzip-compressed input is accepted.
- source_
layer - The tile layer a style layer reads: its
source-layer, or the GeoJSON tile layer when it has none (layer.sourceLayer || '_geojsonTileLayer').
Type Aliases§
- Point
- Tile-space point (0..extent, y down).