Skip to content

Commit

Permalink
Fix missing zoom argument of OSM.cropLocation in home location
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Feb 4, 2025
1 parent c4c7f68 commit 7e6bc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $(document).ready(function () {
map.on("click", function (e) {
if (!$("#updatehome").is(":checked")) return;

const [lat, lon] = OSM.cropLocation(e.latlng);
const [lat, lon] = OSM.cropLocation(e.latlng, map.getZoom());

$("#home_lat").val(lat);
$("#home_lon").val(lon);
Expand Down

0 comments on commit 7e6bc9f

Please sign in to comment.