geometry.json.lineString

Extends IGeometryJson.

An object describing the JSON representation of the "Polyline" geometry.

Constructor | Fields

Constructor

geometry.json.lineString()

Example:

var geometryJson = {
    type: "LineString",
    coordinates: [[1, 2], [3, 5], [7, 11]]
};

Fields

Name

Type

Description

coordinates

Number[][]

Coordinates of a polyline.

type

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".