Route waypoints playground

Restyle a route's waypoint pins per role, number or letter its stops, and give them icons of your own.

View on GitHub
SDK 1.0.0

A day trip with three stops redraws its pins as the panel changes, and the stops found by search wear their place’s category.

  • routingKnobCatalogue lists every waypoint setting with its kind and range, so the panel is built from it and setKnob applies each change to the pins already shown.
  • waypoints.icon.mapping picks a pin per stop from its search result, and a stop it skips keeps its number.
  • A handler on events.waypoints is what makes the pins grow on hover, and it receives each stop’s title and mark as drawn.

Related examples