Back to all examples
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.
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.
routingKnobCataloguelists the bubble settings with their kinds and ranges, so the panel is built from it andsetKnobapplies 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.
durationDifferencegives each alternative its time against the selected route. summaryBubbles.label.titlereceives 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
Add Stops to Route (Playground)
Dynamically add and remove intermediate stops on a route by clicking the map
Playground
Routing
Utilities
User Interaction Events
Web
Along route search playground
Interactively search for places along a route by query or POI category
Playground
Routing
Search and Geocoding
Web
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React