Polyline

class Polyline

A Polyline overlay which was added to the map.

See also

TomTomMap.addPolyline(options: PolylineOptions) to check how to add configure and add a new Polyline.

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

Parameters

id

Unique Polyline identifier.

Functions

Link copied to clipboard
fun remove()

Removes the Polyline from the map.

Properties

Link copied to clipboard
var coordinates: List<GeoCoordinate>

Determines a List of GeoCoordinate elements creating the Polyline.

Link copied to clipboard
var endCap: CapType

The CapType of the end cap of the created Polyline.

Link copied to clipboard
val id: UniqueId
Link copied to clipboard
var isVisible: Boolean

Determines whether the Polyline is visible or hidden.

Link copied to clipboard
var lineColor: Color

The inner Color of the Polyline.

Link copied to clipboard
var lineWidth: Double

The Polyline (inner) width property (in dp units).

Link copied to clipboard
var outlineColor: Color

The outline Color of the Polyline.

Link copied to clipboard
var outlineWidth: Double

The outline width of the Polyline (in dp units).

Link copied to clipboard
var startCap: CapType

The CapType of the start cap of the created Polyline.