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
stroke Color
the line color, used where no spans apply
stroke Width
the line width in pixels
stroke Pattern
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
start Cap
the shape of the start
end Cap
the shape of the end
stroke Join
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
z Index
draw order: polylines with a higher zIndex are drawn on top
tag
optional user data