sdk-maps / com.tomtom.online.sdk.map / PolylineBuilder / build

build

fun build(): Polyline

Create polyline overlay for a given map view. Polyline width must be greater than 0. Minimum number of points must be 2. Otherwise, the exception is thrown.

Return
the newly created Polyline object.