[openstreetmap-website] When trying to share direct-link to details view with directions coordinates in url get overwritten (#959)
danstowell
notifications at github.com
Wed Jun 3 17:58:16 UTC 2015
just noticed this phenomenon myself - confirmed. It probably occurs in `app/assets/javascripts/index/directions.js` in `getRoute()` just after the route polyline is drawn, and the script calls `map.fitBounds`. At present the function has no way of knowing if the user is following a link (as in your case) or doing the usual stuff like submitting a search form, so it would need some way of knowing whether or not it should be updating the bounds.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/959#issuecomment-108547824
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150603/93fe6fab/attachment.html>
More information about the rails-dev
mailing list