A feature is a single geographical item in a layer. The unique ID for a feature is a compound key made up of the layer ID and the feature ID.
id:
string
|number
The identifier of the feature, unique within the layer.
layerId:
string
The identifier of the layer that the feature belongs to.
geometryType:
"Point"
|"Polygon"
|"MultiPolygon"
|"LineString"
|string
& {}
The type of geometry of the feature.
properties:
Record
<string
,unknown
>
The properties of the feature, as a bag of attributes.