Class: GeoJSONFeature

GeoJSONFeature(geometry, properties, id, bbox)

Contains the data associated with a GeoJSON Feature Object. A feature object must have a member with the name "geometry". The value of the geometry member is a geometry object or a JSON null value. A feature object must have a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value). If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id". To include information on the coordinate range for features, a GeoJSON object may have a member named "bbox".

Constructor

new GeoJSONFeature(geometry, properties, id, bbox)

Constructs a GeoJSON Feature object. Applications typically do not call this constructor. It is called by GeoJSON as GeoJSON is read.
Parameters:
Name Type Description
geometry Object An object containing the value of GeoJSON geometry member.
properties Object An object containing the value of GeoJSON properties member.
id Object An object containing the value of GeoJSON Feature id member.
bbox Object An object containing the value of GeoJSON Feature bbox member.
Source:
Throws:
If the specified mandatory geometries or properties are null or undefined.
Type
ArgumentError

Members

(readonly) bbox :Object

The GeoJSON Feature bbox member as specified to this GeoJSONFeature's constructor.
Type:
  • Object
Source:

(readonly) geometry :Object

The GeoJSON Feature geometry as specified to this GeoJSONFeature's constructor.
Type:
  • Object
Source:

(readonly) id :Object

The GeoJSON Feature id as specified to this GeoJSONFeature's constructor.
Type:
  • Object
Source:

(readonly) properties :Object

The GeoJSON Feature properties as specified to this GeoJSONFeature's constructor.
Type:
  • Object
Source: