Polygon

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

First ring is outer; remaining rings are holes. Closing vertex may or may not be present.

Constructors

Link copied to clipboard
constructor(rings: List<CachedGeometry.LineString>)

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.