Map route reconstruction playground
Interactive playground for route reconstruction features
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.
calculateRoutereads aRoutePlanningLocationthat is an array of coordinates as a path to follow, so a drawn line is a routing input, not a separate endpoint.RoutingModule.showRoutesredraws from each recalculation, with nothing to clear in between.getLayerToRenderLinesUndernames the style layer to slot the drawing beneath, so it never covers the labels.
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
Search along one of several drives by query or category, or only along chosen section types or a share of its length
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