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
LzPolylineModel | constructor(identifier: String , coordinates: List <LatLng>, color: String = “#2196F3”, width: Float = 4.0f, opacity: Float = 1.0f, dashArray: List <Float >? = null) |
Properties
color
val color: StringHex 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>? = nullOptional dash pattern as alternating dash/gap lengths. When null, a solid line is drawn.
identifier
val identifier: StringUnique identifier used to reference this polyline for removal.
opacity
val opacity: Float = 1.0fLine opacity, from 0.0 (transparent) to 1.0 (opaque).
width
val width: Float = 4.0fLine width in density-independent pixels.
Last updated on