OmhPolylineOptions

class OmhPolylineOptions(var points: List<OmhCoordinate> = listOf(), var clickable: Boolean? = null, var color: Int? = null, var width: Float? = null, var isVisible: Boolean? = null, var zIndex: Float? = null, var jointType: Int? = null, var pattern: List<OmhPatternItem>? = null, var cap: OmhCap? = null, var startCap: OmhCap? = null, var endCap: OmhCap? = null, var spans: List<OmhStyleSpan>? = null) : Parcelable

OmhPolylineOptions is a class that represents the options for a polyline on a map. A polyline is a series of connected line segments that can form any shape you want on a map. You can customize the appearance of the polyline by changing its color, width, pattern, joint type, and caps.

Constructors

Link copied to clipboard
constructor(points: List<OmhCoordinate> = listOf(), clickable: Boolean? = null, color: Int? = null, width: Float? = null, isVisible: Boolean? = null, zIndex: Float? = null, jointType: Int? = null, pattern: List<OmhPatternItem>? = null, cap: OmhCap? = null, startCap: OmhCap? = null, endCap: OmhCap? = null, spans: List<OmhStyleSpan>? = null)

Properties

Link copied to clipboard
var cap: OmhCap?
Link copied to clipboard

The clickable state of the polyline.

Link copied to clipboard
var color: Int?

The color of the polyline.

Link copied to clipboard

The end cap of the polyline.

Link copied to clipboard

The visibility of the polyline.

Link copied to clipboard

The joint type of the polyline.

Link copied to clipboard

The pattern of the polyline.

Link copied to clipboard

The points that make up the polyline.

Link copied to clipboard

The spans of the polyline.

Link copied to clipboard

The start cap of the polyline.

Link copied to clipboard
var width: Float?

The width of the polyline.

Link copied to clipboard

The z-index of the polyline.