Route with waypoint icon styling

Calculate and display a route with quick waypoint icon styling.

View on GitHub
SDK 1.0.0-rc.7

Rotterdam, Amsterdam and Utrecht go in as names, and the route through them comes back with green waypoint pins outlined in translucent orange.

  • RoutingModule.create takes waypoints.icon.style up front, so fillColor, outlineColor and outlineOpacity stand in for hand-built markers.
  • bboxFromGeoJSON frames the map on the stops before the route exists, so nothing needs fitting afterwards.
  • showWaypoints and showRoutes take the stops and the calculateRoute response as they come, with no layer wiring.

Related examples