Skip to Content
API ReferenceRoutingDashRouteLine

DashRouteLine

class DashRouteLine(dashArray: FloatArray = arrayOf(20f, 20f), lineWith: Float = 10.0f) : RouteLineStyle

Dashed line style that renders the route as an alternating dash-gap pattern: _ . _ .

See also

RouteLineStyle

Constructors

DashRouteLineconstructor(dashArray: FloatArray  = arrayOf(20f, 20f), 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 fun lineColor(): String?

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

Last updated on