OptionalchargingStops?: ChargingStopsConfigConfiguration for the charging stops source and layers to display them on the map.
OptionalcountryCrossings?: CountryCrossingConfigAppearance of the border crossings along the route.
OptionaldisplayUnits?: DisplayUnitsUnits for displaying distances in route summaries and instructions.
Optionallayers?: RouteLayersConfigCustom layer styling configuration.
Optionalsections?: SectionsDisplayConfigAppearance of the route sections, keyed by section type.
Covers every section type the module draws, on the same knobs: draw it or not, its colour, opacity, width, whether it bands the route or stands in for its line, its line pattern and its icon.
The types whose stretches are sparse and consequential draw themselves — carTrain,
ferry, lowEmissionZone, tollRoad, tollVignette, traffic, tunnel and
vehicleRestricted — and switch off with { visible: false }. The rest switch on with
{ visible: true }: a type covering most of a route buries the route line.
layers.sections takes full MapLibre layer specs for the same types, for anything these
knobs cannot express.
OptionalsummaryBubbles?: { visible?: boolean }Configuration for the route summary bubbles displayed on the map.
Optionalvisible?: booleanControls the visibility of route summary bubbles on the map.
Optionaltheme?: RouteThemeMain styling configuration for the route visualization.
Optionalwaypoints?: WaypointsConfigConfiguration for the waypoints source and layers to display them on the map.
Configuration options for the routing module.