Skip to Content
API ReferenceMapLzPolylineModel

LzPolylineModel

data class LzPolylineModel(val identifier: String, val coordinates: List<LatLng>, val color: String = "#2196F3", val width: Float = 4.0f, val opacity: Float = 1.0f, val dashArray: List<Float>? = null)

Describes a standalone polyline overlay to be drawn on the map.

Unlike route lines (managed by RoutePainterStyled), polylines are simple line geometries that can be added and removed independently. They do not participate in navigation or gradient progress tracking.

Constructors

LzPolylineModelconstructor(identifier: String , coordinates: List <LatLng>, color: String  = “#2196F3”, width: Float  = 4.0f, opacity: Float  = 1.0f, dashArray: List <Float >? = null)

Properties

color

val color: String

Hex color string for the line (e.g. “#FF0000”).

coordinates

val coordinates: List<LatLng>

Ordered list of lat/lng points defining the line path.

dashArray

val dashArray: List<Float>? = null

Optional dash pattern as alternating dash/gap lengths. When null, a solid line is drawn.

identifier

val identifier: String

Unique identifier used to reference this polyline for removal.

opacity

val opacity: Float = 1.0f

Line opacity, from 0.0 (transparent) to 1.0 (opaque).

width

val width: Float = 4.0f

Line width in density-independent pixels.

Last updated on