smeijer / leaflet-geosearch

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

Uncaught (in promise) TypeError: can't convert undefined to object - SearchControl.ts:412:27 #326

Open pedjas opened 2 years ago

pedjas commented 2 years ago

I am trying to use this plugin but have an issue.

Search does work but when I click Enter or click on offered found address I get error

Uncaught (in promise) TypeError: can't convert undefined to object - SearchControl.ts:412:27

After that I cannot navigate map, I have to do hard reload of page.

I also noticed that when I click on loupe button to open search and then just click in edit box navigation on map is disabled, cannot scroll or zoom.

Page uses https://unpkg.com/leaflet@1.2.0/dist/leaflet.js https://unpkg.com/leaflet-geosearch@3.0.0/dist/geosearch.umd.js

Page that has an issue is http://ue.cache.osmsrbija.iz.rs so it can be checked online.