Vertex

data class Vertex(val id: VertexId, val position: GeoPosition, val metadata: Map<String, String> = emptyMap())

A single, editable corner point of a DrawnPolygon or DrawnPolyline.

The id stays the same as the user drags this vertex to a new position — that stable identity is what lets editing/undo logic refer to "this vertex" independently of where it currently sits on the globe.

Constructors

Link copied to clipboard
constructor(id: VertexId, position: GeoPosition, metadata: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard

optional, free-form tags (e.g. a label or a snapping hint).

Link copied to clipboard