PolylineOptions | MapGL | Urbi Documentation
MapGL JS API

PolylineOptions

Polyline initialization options.

Properties
string

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

string

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

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different color.

string

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

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different color.

number[][]

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

The length of the dash in pixels. If no dash length is specified, a polyline will be drawn.

string

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

The length of the gap in pixels. The default gap length is equal to the dash length.

string

The color of a line section that is hidden by other objects in '3d' rendering mode in RGB hexadecimal ( #ff0000 ) or RGBA ( #ff0000ff ) format.

string

The gap color of a line section that is hidden by other objects in '3d' rendering mode in RGB hexadecimal ( #ff0000 ) or RGBA ( #ff0000ff ) format.

boolean

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

number

Maximum display styleZoom.

number

Minimum display styleZoom.

Rendering mode. '2d' is default.

any

User specific data.

The line width in pixels.

The second line width in pixels.

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different width.

The third line width in pixels.

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different width.

number

Draw order of the first line.

number

Draw order of second line.

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different zIndex.

number

Draw order of third line.

[DEPRECATED] Will be removed in the next major release, use additional Polyline to draw an extra line with a different zIndex.