sdk-maps / com.tomtom.online.sdk.map / Polyline

Polyline

interface Polyline : Overlay

A base interface defining polyline that can be added to the map.

Properties

DEFAULT_POLYLINE_WIDTH

static val DEFAULT_POLYLINE_WIDTH: Float

The default polyline width.

Functions

getCoordinates

abstract fun getCoordinates(): MutableList<LatLng!>

Gets the list of the polyline corners.

getWidth

abstract fun getWidth(): Float

Gets the polyline width in pixels. It should be greater than 0. The default value is {@value DEFAULT_POLYLINE_WIDTH}

Inherited Functions

getColor

abstract fun getColor(): Int

Gets the color of the overlay in RGBA format.

getOpacity

abstract fun getOpacity(): Float

Gets the opacity of the overlay.