StyleSpan

data class StyleSpan(val color: Color, val segments: Int = 1)(source)

Defines a style span for a portion of a polyline.

Style spans allow different segments of a polyline to have different colors, enabling multi-colored polylines (e.g., traffic conditions, elevation gradients).

Constructors

Link copied to clipboard
constructor(color: Color, segments: Int = 1)

Properties

Link copied to clipboard

The color for this span's segments.

Link copied to clipboard

The number of consecutive segments this style applies to. Default is 1.