sdk-maps / com.tomtom.online.sdk.map.route / RouteLayerStyle / Builder

Builder

class Builder

Builder class used to create RouteLayerStyle instance.

Constructors

<init>

Builder(color: Int? = null, width: Float = 1.0f, dashList: List<DashDescriptor> = emptyList(), lineCapType: LineCapType = LineCapType.ROUND, lineJoinType: LineJoinType = LineJoinType.ROUND)

Builder class used to create RouteLayerStyle instance.

Functions

build

fun build(): RouteLayerStyle

Create RouteLayerStyle instance.

color

fun color(color: Int): RouteLayerStyle.Builder

Set the layer route color.

dashList

fun dashList(dashList: List<DashDescriptor>): RouteLayerStyle.Builder

Set dashes and gaps lengths. Lengths are later scaled by the line width.

lineCapType

fun lineCapType(lineCapType: LineCapType): RouteLayerStyle.Builder

Set the display of line endings.

lineJoinType

fun lineJoinType(lineJoinType: LineJoinType): RouteLayerStyle.Builder

Set the display of lines when joining.

width

fun width(width: Float): RouteLayerStyle.Builder

Set the layer route width.