PolylineOptions | MapGL | Urbi Documentation

PolylineOptions

Polyline initialization options.

Properties
undefinedstring

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

undefinedstring

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.

undefinedstring

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

numberInterpolateExpression<number>

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

undefinedstring

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

numberInterpolateExpression<number>

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

undefinedfalsetrue

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

undefinednumber

Maximum display styleZoom.

undefinednumber

Minimum display styleZoom.

any

User specific data.

numberInterpolateExpression<number>

The line width in pixels.

numberInterpolateExpression<number>

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.

numberInterpolateExpression<number>

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.

undefinednumber

Draw order of the first line.

undefinednumber

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.

undefinednumber

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.