Route with custom main color

Calculate and display a route with its main color changed.

View on GitHub
SDK 1.0.0-rc.7

The colour picker recolours the London to Paris route already on the map, applying one value without recalculating anything.

  • geocodeOne returns one Waypoint per endpoint, which calculateRoute takes as it stands, once, at startup.
  • RoutingModule.updateConfig takes a partial config, so color is the whole change. There is no second request and no MapLibre paint property to set by hand.

Related examples