Interface ExtendedFeature<GeometryType, Properties>

A GeoJSON-style Feature which support features built on GeoJSON GeometryObjects or GeoSphere.

The first generic refers to the type(s) of d3-geo geometry objects underlying the ExtendedFeature. Unless explicitly ruled out, the geometry value is nullable.

The second generic refers to the data type of the properties of the ExtendedFeature. Unless explicitly ruled out, the properties value is nullable.

interface ExtendedFeature {
    bbox?: BBox;
    geometry: GeometryType;
    id?: string | number;
    properties: Properties;
    type: "MultiPolygon" | "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
}

Type Parameters

Hierarchy

Properties

bbox?: BBox

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: GeometryType
id?: string | number
properties: Properties
type: "MultiPolygon" | "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection" | "Feature" | "FeatureCollection"

Specifies the type of GeoJSON object.