[openstreetmap/openstreetmap-website] Directions output module (PR #5913)

Anton Khorev notifications at github.com
Wed Apr 9 15:48:39 UTC 2025


Previously I moved endpoints code out of `directions.js`, but there's still too much code.

This PR creates a module for valid route output which includes:
- total time/distance
- directions table
- download link
- link to the routing engine
- route geometry drawn on the map with hovers/popups
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use for loop to write directions table
  * Move directions output to its own module
  * Replace deprecated hover listener by mouseenter/leave
  * Rename directions close button listener

-- File Changes --

    A app/assets/javascripts/index/directions-output.js (140)
    M app/assets/javascripts/index/directions.js (140)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5913
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5913 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250409/462e301f/attachment.htm>


More information about the rails-dev mailing list