diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Sep092010

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 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]

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!