[openstreetmap/openstreetmap-website] Fix incorrect z-order of dashboard map markers (fixes #6639) (PR #6654)
Anshul Zilpe
notifications at github.com
Tue Jan 6 19:04:37 UTC 2026
@aNsHuL5217 commented on this pull request.
> .addTo(map);
+
+ return { marker, lat, lon };
+ })
+ .get();
I agree that keeping `.map()` pure is better for maintainability. I've refactored this to strictly create the marker objects in the map, and added a separate loop afterwards to handle the `.addTo(map)` side effect.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6654#discussion_r2665976838
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6654/review/3632128956 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260106/55515820/attachment.htm>
More information about the rails-dev
mailing list