GeoJsonFeatureData interface

Properties

featureType

The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.

geometry

A valid GeoJSON geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to RFC 7946 for details.

id

Identifier for the feature.

properties

Properties can contain any additional metadata about the Feature. Value can be any JSON object or a JSON null value

Property Details

featureType

The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.

featureType?: string

Property Value

string

geometry

A valid GeoJSON geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to RFC 7946 for details.

geometry: GeoJsonGeometry

Property Value

id

Identifier for the feature.

id?: string

Property Value

string

properties

Properties can contain any additional metadata about the Feature. Value can be any JSON object or a JSON null value

properties?: Record<string, unknown>

Property Value

Record<string, unknown>