Interface Feature<G, P>
interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> {
bbox?: BBox;
geometry: G;
id?: string | number;
properties: P;
type: "Feature";
}
bbox?: BBox;
geometry: G;
id?: string | number;
properties: P;
type: "Feature";
}
Type Parameters
- G extends Geometry | null = Geometry
- P = GeoJsonProperties
Hierarchy (View Summary)
- GeoJsonObject
- Feature
Index
Properties
Properties
Optionalbbox
Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5
geometry
The feature's geometry
Optionalid
id?: string | number
A value that uniquely identifies this feature in a https://tools.ietf.org/html/rfc7946#section-3.2.
properties
Properties associated with this feature.
type
type: "Feature"
Specifies the type of GeoJSON object.
Was this helpful?
A feature object which contains a geometry and associated properties. https://tools.ietf.org/html/rfc7946#section-3.2