LineString class
A GeoJSON LineString object - a JSON object that represents a geographic curve. The full description is detailed in RFC 7946.
Constructors
Line |
Constructs a LineString. |
Properties
bbox | The bounding box of the linestring. |
coordinates | The ordered list of positions defining the linestring. |
type | A GeoJSON type descriptor with value "LineString". |
TYPE | A static GeoJSON type descriptor for the LineString class to be used in runtime comparisons. |
Constructor Details
LineString(Position[], BoundingBox)
Constructs a LineString.
new LineString(coordinates: Position[], bbox?: BoundingBox)
Parameters
- coordinates
-
Position[]
The ordered list of positions defining the linestring.
- bbox
- BoundingBox
The bounding box of the linestring.
Property Details
bbox
coordinates
The ordered list of positions defining the linestring.
coordinates: Position[]
Property Value
Position[]
type
A GeoJSON type descriptor with value "LineString".
type: string
Property Value
string
TYPE
A static GeoJSON type descriptor for the LineString class to be used in runtime comparisons.
static TYPE: string
Property Value
string