[openstreetmap/openstreetmap-website] Fix incorrect z-order of dashboard map markers (fixes #6639) (PR #6654)

Anshul Zilpe notifications at github.com
Tue Dec 30 19:15:16 UTC 2025


aNsHuL5217 left a comment (openstreetmap/openstreetmap-website#6654)

I’ve updated the code to handle the Z-ordering correctly.

To solve the sorting problem, I added a listener that updates the `zIndex` based on the marker's Y-position on the screen whenever the map moves or rotates. This keeps the "closest" markers on top without breaking the visuals.

Here is a quick video showing the rotation behavior:

https://github.com/user-attachments/assets/c0b4c048-3c75-4ec8-bfdd-5f877eb41d7e



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

Message ID: <openstreetmap/openstreetmap-website/pull/6654/c3700227562 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251230/0e2050b0/attachment.htm>


More information about the rails-dev mailing list