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
221
Reputation points
Once a route has been set, is it possible to drag & change the route course as per Google Maps?
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
836 questions
Accepted answer
-
rbrundritt 20,921 Reputation points Microsoft Employee Moderator
2021-11-05T21:14:33.937+00:00