Polyline Options
Builder class for creating Polyline instances with a fluent API. Matches the Google Maps API pattern for polyline configuration.
Example usage:
val polyline = PolylineOptions()
.add(LatLng(51.5, 0.0))
.add(LatLng(51.6, 0.1))
.color(Color.Blue)
.width(5f)
.strokePattern(PathEffect.dashPathEffect(floatArrayOf(20f, 10f), 0f))
.clickable(true)Functions
Adds a vertex to the end of the polyline.
Adds vertices to the end of the polyline.
Sets whether the polyline is clickable.
Sets the stroke color of the polyline.
Sets the stroke cap style for the end of the polyline.
Sets whether segments are drawn as geodesics (great-circle paths).
Sets style spans for multi-colored polylines.
Sets the stroke cap style for the start of the polyline.
Sets the stroke join style for line corners.
Sets the stroke pattern of the polyline (dashed, dotted, etc.).
Sets optional user data associated with the polyline.
Sets whether the polyline is visible.
Sets the stroke width of the polyline in pixels.
Sets the z-index for draw order.