@hlfan 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's actually better than the idea I had, since mutating the array keeps the
list at least nearly sorted.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6654#discussion_r2654797001
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6654/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev