Route with waypoint icon styling
Calculate and display a route with quick waypoint icon styling.
Rotterdam, Amsterdam and Utrecht go in as names, and the route through them comes back with green waypoint pins outlined in translucent orange.
RoutingModule.createtakeswaypoints.icon.styleup front, sofillColor,outlineColorandoutlineOpacitystand in for hand-built markers.bboxFromGeoJSONframes the map on the stops before the route exists, so nothing needs fitting afterwards.showWaypointsandshowRoutestake the stops and thecalculateRouteresponse as they come, with no layer wiring.
Related examples
Route with custom main color
Calculate and display a route with its main color changed.
Customization
Routing
Web
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