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/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to