Polyline

fun Polyline(points: List<LatLng>, clickable: Boolean = false, color: Color = Color.Black, endCap: Cap = ButtCap(), geodesic: Boolean = false, jointType: Int = JointType.DEFAULT, pattern: List<PatternItem>? = null, startCap: Cap = ButtCap(), tag: Any? = null, visible: Boolean = true, width: Float = 10.0f, zIndex: Float = 0.0f, onClick: (Polyline) -> Unit = {})

A composable for a polyline on the map.

Parameters

points

the points comprising the polyline

clickable

boolean indicating if the polyline is clickable or not

color

the color of the polyline

endCap

a cap at the end vertex of the polyline

geodesic

specifies whether to draw the polyline as a geodesic

jointType

the joint type for all vertices of the polyline except the start and end vertices

pattern

the pattern for the polyline

startCap

the cap at the start vertex of the polyline

visible

the visibility of the polyline

width

the width of the polyline in screen pixels

zIndex

the z-index of the polyline

onClick

a lambda invoked when the polyline is clicked