geometry.json.lineString
Extends IGeometryJson.
An object describing the JSON representation of the "Polyline" geometry.
Constructor
geometry.json.lineString()
Example:
var geometryJson = {
    type: "LineString",
    coordinates: [[1, 2], [3, 5], [7, 11]]
};
Fields
| Name | Type | Description | 
| Number[][] | Coordinates of a polyline. | |
| String | Identifier of the "Polyline" geometry type. Must always take the value "LineString". | 
Fields details
coordinates
{Number[][]} coordinates
Coordinates of a polyline.
type
{String} type
Identifier of the "Polyline" geometry type. Must always take the value "LineString".
Was the article helpful?
Previous