MultiPolygon

@Serializable
@SerialName(value = "MultiPolygon")
data class MultiPolygon(val polygons: List<CachedGeometry.Polygon>) : CachedGeometry

A composite of N independent polygons that belong to one feature (GeoJSON MultiPolygon, GPKG MULTIPOLYGON). Consumers fan it out into N renderables that share one properties map.

Constructors

Link copied to clipboard
constructor(polygons: List<CachedGeometry.Polygon>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Envelope-center (longitude, latitude) of this geometry — a deterministic representative point. Used to assign a feature to a single tile (the one containing its center), so a geometry that straddles a tile boundary renders in exactly one tile instead of every tile its envelope touches.