Azure maps, draggable routes.

Dev 216 Reputation points
2021-11-05T09:31:20.89+00:00

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.
738 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 18,686 Reputation points Microsoft Employee
    2021-11-05T21:14:33.937+00:00

    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

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.