Draggable Directions In the Google Maps API v3!

Google implemented "draggable directions" in Google Maps API v3. "Draggable directions allow a user to modify the route suggested by the Maps API to suit their tastes, for e.g. to avoid traffic, or to modify stop overs on a long road trip. The API implementation closely follows that on Google Maps; existing markers can be […]

Google implemented "draggable directions" in Google Maps API v3. "Draggable directions allow a user to modify the route suggested by the Maps API to suit their tastes, for e.g. to avoid traffic, or to modify stop overs on a long road trip. The API implementation closely follows that on Google Maps; existing markers can be dragged around the map, and moving your mouse near the path allows you to click and drag a new point," informs Google.

Demo:

"DirectionsRenderer now has a draggable option, which when true causes paths to be draggable when rendered. API developers can be notified of changes to a path by listening to directions_changed event on a DirectionsRenderer. This makes it easy to implement additional features like the Undo button above."

More Info: Documentation

[Source]

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.