Route Dragging Plugin
Edit a route by hand: move its stops by their pins, pull new ones off the line, and watch the road follow
A route through three Dutch cities reshapes under the pointer: its stops move and new ones join it, and the road follows while you drag.
new RouteDragging(routing)listens to the routing module’s drag events, so no pointer handling of yours is in the loop.setWaypointsshows the stops and plans the route, and every drag re-plans it twice a second and once more on the drop.onRoutesgets each answer in order, so the summary never steps back to an older route.
Related examples
3D terrain map
Render the map surface in 3D using terrain elevation data
Getting Started
Terrain and 3D
Plugins
Web
Add Stops to Route
Find stops along a route within a one-minute detour and insert them all at optimal positions in a single call.
Getting Started
Routing
Search and Geocoding
Electric Vehicles
Utilities
Web
Along route search
Find the beaches and viewpoints within a one-minute detour of a coastal drive
Getting Started
Routing
Search and Geocoding
Web
Display units
Switch a route's labels and your own text between metric, imperial UK and imperial US units.
Getting Started
Utilities
Routing
Web