@aNsHuL5217 commented on this pull request.
> - .setLngLat([user.lon, user.lat])
+ const lat = parseFloat(user.lat);
+ const lon = parseFloat(user.lon);
I dropped the parseFloat since MapLibre handles the strings fine on its own.
Passing them raw now.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6654#discussion_r2654691549
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