Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

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

NameTypeDescription
coordinatesNumber[][]

Coordinates of a polyline.

typeString

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