It requires a bit more work to do, but is achievable. What you have to decide is if you want to see a preview as your dragging. If you do, do you want a preview of the actual route or will straight lines be good enough? If you want the actual route, then you will be generating a transaction against the routing service with each preview line which can quickly make this an expense feature. I've put together a code sample that uses straight lines as a preview here: https://azuremapscodesamples.azurewebsites.net/?sample=Draggable%20route%20lines
Azure maps, draggable routes.
Dev
216
Reputation points
Once a route has been set, is it possible to drag & change the route course as per Google Maps?
Accepted answer
-
rbrundritt 18,686 Reputation points Microsoft Employee
2021-11-05T21:14:33.937+00:00