Polyline

constructor(points: List<LatLng>, strokeColor: Color = Color.Black, strokeWidth: Float = 10.0f, strokePattern: PathEffect? = null, pattern: List<PatternItem>? = null, startCap: StrokeCap = StrokeCap.Butt, endCap: StrokeCap = StrokeCap.Butt, strokeJoin: StrokeJoin = StrokeJoin.Round, geodesic: Boolean = false, spans: List<StyleSpan> = emptyList(), visible: Boolean = true, clickable: Boolean = false, zIndex: Float = 0.0f, tag: Any? = null)(source)

Parameters

points

the geographic coordinates of the path, at least 2

strokeColor

the line color, used where no spans apply

strokeWidth

the line width in pixels

strokePattern

the stroke pattern, e.g. dashed; null for a solid line

pattern

the stroke pattern as dots, dashes and gaps, used instead of strokePattern if not null

startCap

the shape of the start

endCap

the shape of the end

strokeJoin

the shape of the corners

geodesic

whether segments are drawn as great-circle paths instead of straight lines on the Mercator map

spans

style spans for a multi-colored line, overriding strokeColor for their segments

visible

whether the polyline is visible

clickable

whether a tap on the polyline is reported to its click listener

zIndex

draw order: polylines with a higher zIndex are drawn on top

tag

optional user data