OptionalcountryBorder crossing layers.
OptionalrouteCountryCrossing?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer writing each crossing's label in its bubble.
Anything CountryCrossingConfig cannot express about the bubble or its label.
OptionalinstructionTurn-by-turn instruction arrow layers.
OptionalrouteInstructionArrowSymbol?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>Symbol layer for the direction arrows placed along manoeuvre 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 draws directional arrows along the main route.
OptionalrouteOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Styling for the outline (stroke) around the primary route line.
OptionalsectionLayers of the sections RoutingModule.setSectionFocus marks.
OptionalrouteDeselectedSectionFocusOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Line layer ringing each focused section of a deselected route, under the selected route where they cross.
OptionalrouteSectionFocusOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>Line layer ringing each focused section of the selected route, drawn with a
line-gap-width as wide as the widest line along the route, so the route and its
sections show through.
Anything RouteHighlightConfig section cannot express about the ring.
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. Every type the module draws has an entry here,
in the same vocabulary as the semantic sections config, one tier down. 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 that band the route carry a line layer, and an icon layer once
sections.<type>.icon asks for one; speedLimit carries only its sign layer. The remaining
five draw themselves with the hand-written layers documented below.
OptionalsummaryRoute summary 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 of the route layers' look on the map, in the MapLibre specification.
Remarks
It gives fine-grained control over every route layer, including main route lines, waypoints, route sections (ferry, tunnel, toll roads and others), turn-by-turn guidance instructions and route summaries.
All fields are optional. A field you leave out uses the default styling.