@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/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev