Skip to main content

GeoFeature<G, P>

A feature object which contains a geometry and associated properties.

See​

https://tools.ietf.org/html/rfc7946#section-3.2

Type Parameters​

Type ParameterDefault type
GGeometryLiteral
P extends object | nullnull

Properties​

geometry​

geometry: G;

The feature's geometry.

See​

GeometryLiteral


id​

id: P extends IdentifiableGeoFeature ? P<P>["GEOID"] : undefined | null | string | number;

A unique identifier for the feature, such as a UUID, a serial number, or a name.


properties​

properties: P;

Additional properties associated with a GeoJSON object.


type​

type: "Feature";

Declares the type of GeoJSON object as a Feature.