PolylineOptions

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)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a vertex to the end of the polyline.

Link copied to clipboard

Adds vertices to the end of the polyline.

Link copied to clipboard

Sets whether the polyline is clickable.

Link copied to clipboard

Sets the stroke color of the polyline.

Link copied to clipboard

Sets the stroke cap style for the end of the polyline.

Link copied to clipboard

Sets whether segments are drawn as geodesics (great-circle paths).

Link copied to clipboard

Sets style spans for multi-colored polylines.

Link copied to clipboard

Sets the stroke cap style for the start of the polyline.

Link copied to clipboard

Sets the stroke join style for line corners.

Link copied to clipboard

Sets the stroke pattern of the polyline (dashed, dotted, etc.).

Link copied to clipboard
fun tag(tag: Any?): PolylineOptions

Sets optional user data associated with the polyline.

Link copied to clipboard

Sets whether the polyline is visible.

Link copied to clipboard

Sets the stroke width of the polyline in pixels.

Link copied to clipboard

Sets the z-index for draw order.