PolylineOptions

data class PolylineOptions(    var coordinates: List<GeoCoordinate>,     val lineColor: Color = DEFAULT_LINE_COLOR,     val lineWidth: Double = DEFAULT_LINE_WIDTH,     val outlineColor: Color = DEFAULT_OUTLINE_COLOR,     val outlineWidth: Double = DEFAULT_OUTLINE_WIDTH,     val lineStartCapType: CapType = DEFAULT_START_CAP_TYPE,     val lineEndCapType: CapType = DEFAULT_END_CAP_TYPE)

Configures options for a Polyline overlay which can be added and displayed on the map. See the TomTomMap.addPolyline(options: PolylineOptions) to check how to add a new Polyline.

See also

, which describes its properties in a more detailed way.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

coordinates

Coordinates of the line.

lineColor

Main Color of the polyline.

lineWidth

Width of the line.

outlineColor

Outline Color for the polyline overlay.

outlineWidth

Width of the outline for the polyline overlay.

lineStartCapType

The CapType of the start cap of the Polyline to be created.

lineEndCapType

The CapType of the end cap of the Polyline to be created.

Constructors

Link copied to clipboard
fun PolylineOptions(    coordinates: List<GeoCoordinate>,     lineColor: Color = DEFAULT_LINE_COLOR,     lineWidth: Double = DEFAULT_LINE_WIDTH,     outlineColor: Color = DEFAULT_OUTLINE_COLOR,     outlineWidth: Double = DEFAULT_OUTLINE_WIDTH,     lineStartCapType: CapType = DEFAULT_START_CAP_TYPE,     lineEndCapType: CapType = DEFAULT_END_CAP_TYPE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var coordinates: List<GeoCoordinate>
Link copied to clipboard
val lineColor: Color
Link copied to clipboard
val lineEndCapType: CapType
Link copied to clipboard
val lineStartCapType: CapType
Link copied to clipboard
val lineWidth: Double
Link copied to clipboard
val outlineColor: Color
Link copied to clipboard
val outlineWidth: Double