[openstreetmap/openstreetmap-website] Added 'Reverse Directions' link (#1693)

Jamie Guthrie notifications at github.com
Sun Dec 17 01:36:19 UTC 2017

I've recommitted with some changes.

The OSM.router.route method fails to work in the example given in the linked Issue (I think its because the latlng values of each marker don't get set when linking straight from the URL, rather than after clicking the "Go" button)

Instead of making things too complicated, I've made a simple call to getRoute(), which handles the setting of all latlng values and includes a call to OSM.router.route.

It now works with the example in the linked Issue as well as normal situations when clicking the "Go" button

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20171217/66161221/attachment.html>

More information about the rails-dev mailing list