Route summary bubbles playground

Choose what a route's summary bubble says, which routes carry one, its colour and typeface, the zooms it shows at, and a text of your own per route.

View on GitHub
SDK 1.0.0

A route and its alternatives redraw their bubbles as the panel changes, and a dark map turns them dark. Click an alternative to select it: every bubble stays where it is, and the others are timed against it.

  • routingKnobCatalogue lists the bubble settings with their kinds and ranges, so the panel is built from it and setKnob applies each change to the bubbles already shown.
  • Each bubble sits on a stretch of road its route has to itself, so routes sharing the motorway don’t hide each other’s bubble. durationDifference gives each alternative its time against the selected route.
  • summaryBubbles.label.title receives each route’s formatted summary and writes its own text in place of the fields.
  • Without a colour of its own, the bubble follows the map’s light or dark theme, and its text stays readable on whichever colour it takes.

Related examples