#5805 added links to heatmaps, but those weren't real links. Those were 
click listeners that rewrite page locations. The browser won't show their 
urls and they can't be opened in new tabs.

This PR creates real links by wrapping svg rectangles in `<a>` elements.

![image](https://github.com/user-attachments/assets/3c9d4a62-8462-484e-8b66-daac91f72641)

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Create heatmap links using <a> elements

-- File Changes --

    M app/assets/javascripts/heatmap.js (14)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5814
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