Skip to content

Commit

Permalink
nominatim does not return complete address with bad zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesPasteur committed Aug 11, 2023
1 parent 16c615f commit 31ca131
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 31ca131

Please sign in to comment.