Skip to content

Commit

Permalink
Merge pull request #116 from YvesPasteur/fix-leaflet-reverse-zoom
Browse files Browse the repository at this point in the history
nominatim does not return complete address with bad zoom
  • Loading branch information
qhess34 authored Aug 28, 2023
2 parents 16c615f + 31ca131 commit f8039a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ async function setFormMapPoint(latlng, address) {
M.updateTextFields();
} else {
//Reversegeocoding
formmap.geocoderCtrl.options.geocoder.reverse(mapmarker.getLatLng(), 1, function (result) {
formmap.geocoderCtrl.options.geocoder.reverse(mapmarker.getLatLng(), formmap.options.crs.scale(formmap.getZoom()), function (result) {
if (result.length > 0) {
$("#issue-address").val(addressFormat(result[0]))
M.updateTextFields();
Expand Down

0 comments on commit f8039a8

Please sign in to comment.