PolylineOptions | MapGL | 2GIS Documentation

PolylineOptions

Polyline initialization options.

Properties
undefinedstring

The first line color in hexadecimal RGB (#ff0000) or RGBA (#ff0000ff) format.

undefinedstring

The second line color in hexadecimal RGB (#ff0000) or RGBA (#ff0000ff) format.

undefinedstring

The third line color in hexadecimal RGB (#ff0000) or RGBA (#ff0000ff) format.

number[][]

An array of polyline coordinates: [firstPoint, secondPoint, ...]. Each point is a geographical point: [longitude, latitude].

undefinedfalsetrue

Allows the polyline to emit events (like mouseover). true by default.

undefinednumber

Maximum display zoom level.

undefinednumber

Minimum display zoom level.

undefinednumber

The first line width in pixels.

undefinednumber

The second line width in pixels.

undefinednumber

The third line width in pixels.

undefinednumber

Draw order of the first line.

undefinednumber

Draw order of the second line.

undefinednumber

Draw order of third line.