[openstreetmap/openstreetmap-website] Fix incorrect z-order of dashboard map markers (fixes #6639) (PR #6654)
Marwin Hochfelsner
notifications at github.com
Fri Jan 2 22:42:08 UTC 2026
@hlfan commented on this pull request.
> + const user = $(this).data("user");
+ const { lat, lon } = user;
+
+ if (!lat || !lon) return null;
+
+ const marker = OSM.MapLibre.getMarker({
+ icon: "dot",
+ color: user.color
+ })
+ .setLngLat([lon, lat])
.setPopup(OSM.MapLibre.getPopup(user.description))
```suggestion
const { lat, lon, color, description } = $(this).data("user");
if (!lat || !lon) return null;
const marker = OSM.MapLibre
.getMarker({ icon: "dot", color })
.setLngLat([lon, lat])
.setPopup(OSM.MapLibre.getPopup(description))
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6654#pullrequestreview-3624000436
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6654/review/3624000436 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260102/7e6bc4f6/attachment.htm>
More information about the rails-dev
mailing list