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

Anshul Zilpe notifications at github.com
Wed Dec 31 03:08:56 UTC 2025


@aNsHuL5217 commented on this pull request.



> +      markerObjects.forEach((item) => {
+        const point = map.project([item.lon, item.lat]);
+        const zIndex = Math.round(point.y);
+        item.marker.getElement().style.zIndex = zIndex;
+      });

That makes sense. I updated the logic to sort the markers by Y-position first, then just assigned a simple index (0, 1, 2...) based on that order.

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

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


More information about the rails-dev mailing list