Map route reconstruction playground

Interactive playground for route reconstruction features

View on GitHub
SDK 1.0.0-rc.7

Hold Alt and drag a green trail across the map, and the route comes back following that trail instead of the roads the router would pick.

  • calculateRoute reads a RoutePlanningLocation that is an array of coordinates as a path to follow, so a drawn line is a routing input, not a separate endpoint.
  • RoutingModule.showRoutes redraws from each recalculation, with nothing to clear in between.
  • getLayerToRenderLinesUnder names the style layer to slot the drawing beneath, so it never covers the labels.

Related examples