Error when call nominatim.openstreetmap.org/reverse #3216
elsasantos
started this conversation in
General
Replies: 1 comment
-
Already asked in smeijer/leaflet-geosearch#375 and smeijer/leaflet-geosearch#376 You need to wait for their answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
In the last two weeks we have come across an problem with leaflet-geosearch. We use the search, which correctly returns the various addresses, but when clicking, it does not assume the new address and does not update the new marker on the map (leaflet).
What happens? In the search fuction, when que nominatim.openstreetmap.org/reverse is called, the new position is not in the parameter. I have this error:
error: {
code: 400,
message: "Parameter 'lon' missing."
}
I try updated the leaflet-geosearch plugin version in my project from 2.7.0 to 3.6.1. I followed the guide https://github.com/smeijer/leaflet-geosearch#using-with-leafletjs but it didn't work, I get this error when implementing 'const searchControl = new GeoSearchControl':
"Only a void function can be called with the 'new' keyword.ts(2350)"
What can I do in this case? Can anyone help?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions