Route with custom main color
Calculate and display a route with its main color changed.
The colour picker recolours the London to Paris route already on the map, applying one value without recalculating anything.
geocodeOnereturns oneWaypointper endpoint, whichcalculateRoutetakes as it stands, once, at startup.RoutingModule.updateConfigtakes a partial config, socoloris the whole change. There is no second request and no MapLibre paint property to set by hand.
Related examples
Route with MapLibre Customization
Calculate and display a route with MapLibre layer customizations on it.
Customization
Routing
Web
Multiple routes from different origins
Display routes from multiple origins to a common destination
Customization
Routing
Web
Speed limit signs by country
Post each speed limit as a road sign shaped the way its country shapes it
Customization
Routing
Web
Route with waypoint icon styling
Calculate and display a route with quick waypoint icon styling.
Customization
Routing
Web