Skip to main content

Module mvt

Module mvt 

Source
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§

Feature
Layer
Tile

Enums§

GeomType
Geometry
Value
A feature property value.

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