OptionalchargingElectric vehicle charging station section layers.
OptionalrouteChargingStopSymbol?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for rendering charging stop icons on the map.
OptionalinstructionTurn-by-turn instruction arrow layers.
OptionalrouteInstructionArrowSymbol?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for instruction/direction arrows placed along maneuver segments.
OptionalinstructionTurn-by-turn instruction line layers.
OptionalrouteInstructionLine?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Line layer for the instruction segment itself.
OptionalrouteInstructionOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Line layer for the outline around instruction segments.
OptionalmainMain route line layer specifications.
OptionalrouteDeselectedLine?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Styling for the deselected (inactive) route line.
OptionalrouteDeselectedOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Styling for the outline around the deselected route line.
OptionalrouteLine?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Styling for the primary, selected route line.
OptionalrouteLineArrows?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer that renders directional arrows along the main route.
OptionalrouteOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Styling for the outline (stroke) around the primary route line.
OptionalsectionsLayer specifications for route sections, keyed by section type.
Optionalferry?: {Ferry crossing section layers.
OptionaltollRoad?: {Layers for the tollRoad section type.
Optionaltraffic?: {Traffic incident section layers.
Optionaltunnel?: {Tunnel section layers.
OptionalvehicleRestricted?: {Vehicle-restricted section layers.
Each section is a subset of the route path, and every type the module draws has an entry
here — the same vocabulary as the semantic sections config, one tier down. This is the
escape hatch: use it when the knobs on sections are not enough and you need full MapLibre
control over the layers a section is drawn with.
The generated types carry a line layer, and an icon layer once sections.<type>.icon asks
for one. The remaining five draw themselves with the hand-written layers documented below.
OptionalsummaryRoute summary information bubble layers.
OptionalrouteSummaryBubbleSymbol?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for the route summary bubble icon and label.
OptionalwaypointsWaypoint layer specifications.
OptionalrouteWaypointLabel?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for waypoint labels displayed next to waypoint icons.
OptionalrouteWaypointSymbol?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for waypoint icons (origin, destination, stops).
Detailed configuration for the visual appearance of route layers on the map with the MapLibre specification.
Remarks
Provides fine-grained control over all route visualization layers, including main route lines, waypoints, route sections (ferry, tunnel, toll roads, etc.), turn-by-turn guidance instructions, and route summaries.
All fields are optional. When a field is not provided, the default styling will be used.