Skip to Content
API ReferenceRoutingPlainRouteLine

PlainRouteLine

class PlainRouteLine(colorHex: String = "#ff33b5e5", lineWith: Float = 10.0f) : RouteLineStyle

Plain solid-color line style. Renders the route as a single continuous line with the specified color and width.

See also

RouteLineStyle

Constructors

PlainRouteLineconstructor(colorHex: String  = “#ff33b5e5”, lineWith: Float  = 10.0f)

Functions

builtLayer

open override fun builtLayer(layerId: String, sourceId: String): LineLayer

Builds a MapLibre LineLayer configured with this style’s visual properties.

lineColor

open override fun lineColor(): String

Returns the dominant line color hex (e.g. “#7000FF”), or null if not applicable.

Last updated on