Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when update version #376

Open
elsasantos opened this issue Oct 2, 2023 Discussed in #375 · 0 comments
Open

Error when update version #376

elsasantos opened this issue Oct 2, 2023 Discussed in #375 · 0 comments

Comments

@elsasantos
Copy link

elsasantos commented Oct 2, 2023

Discussed in #375

Originally posted by elsasantos October 2, 2023
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant