Skip to Content
API ReferenceRoutingPatternsRouteLine

PatternsRouteLine

class PatternsRouteLine(pattern: String = "play_arrow", lineWith: Float = 10.0f) : RouteLineStyle

Pattern line style. It will repeat the pattern image along the route line. For example, this can be used to paint an arrow along the route.

See also

RouteLineStyle

Constructors

PatternsRouteLineconstructor(pattern: String  = “play_arrow”, 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