smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.04k stars 273 forks source link

keepResult to false does not show markers properly #330

Open SalahAdDin opened 2 years ago

SalahAdDin commented 2 years ago

Continue working with this library to create a nice search input field, we got another problem: we require to clean the search input after resetting the field.

We tried to do this by setting keepResult: true, but it have a trade back: it does not show the marker when selecting a result.

Why does this happen?

What should be a better way to clean the search input from out of the LeafLetGeoSearch component?

Thank you