[openstreetmap/openstreetmap-website] Map pans to improved position when clicking on instructions (#1745)

Jamie Guthrie notifications at github.com
Mon Feb 12 23:42:59 UTC 2018


Selected direction & popup now pan to the center of the screen, whereas before sometimes it would have the highlighted junction & popup tucked away right in the corner..

As an example, go to https://www.openstreetmap.org/directions?engine=osrm_car&route=55.9496%2C-3.1915%3B52.2033%2C0.1249
- Zoom in close to street level at a location far away from the route (i.e. zoom into central Paris)
- Then click on of the direction instructions on the left, and the map will pan to the selected direction point, but it will be right in the corner of the screen most likely.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1745

-- Commit Summary --

  * Map pans to improved position when clicking on instructions in the directions list

-- File Changes --

    M app/assets/javascripts/index/directions.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1745.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1745.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1745
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180212/4847d55a/attachment-0001.html>


More information about the rails-dev mailing list