[openstreetmap/openstreetmap-website] Migrate the edit location page from leaflet to Maplibre (PR #6675)

Frank Elsinga notifications at github.com
Sun Jan 4 20:40:01 UTC 2026


@CommanderStorm commented on this pull request.



>        marker.addTo(map);
     }
 
     map.on("click", function (e) {
       if (!$("#updatehome").is(":checked")) return;
 
-      const [lat, lon] = OSM.cropLocation(e.latlng, map.getZoom());
+      const [lat, lon] = OSM.cropLocation(e.lngLat, map.getZoom() + 1);

this might look like it needs more changing, but actually does not.

https://github.com/openstreetmap/openstreetmap-website/blob/65936c9e5b87a47e7a819a59e605f0a3e6bfffd5/app/assets/javascripts/osm.js.erb#L212-L216

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

Message ID: <openstreetmap/openstreetmap-website/pull/6675/review/3625164092 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260104/2ca1342e/attachment.htm>


More information about the rails-dev mailing list