naomap / leaflet-fusesearch

A plugin for Leaflet to search features in a GeoJSON layer using Fuse.js
MIT License
94 stars 33 forks source link

layer.getPopup is not a function #15

Open gisveld opened 7 years ago

gisveld commented 7 years ago

Hello Antoine,

I have downloaded the fusesearch source files and added it to my map. But i can't get it working. The browser console gives my this error: layer.getPopup is not a function (line 282). I dont get it. Your CultureNantes-map has also this line and works fine. When i change line 282 in: return layer.openPopup(); the fusesearch is working but the popup is directly opening by typing. This is not what i want. (See also https://github.com/naomap/leaflet-fusesearch/issues/14 whitch includes my map in ZIP).

Could u please explain me why i get this error (is it my main.js or a bug in the leaflet-fusesearch.js)? I spend so many hours but cant fix it, only by changing (way) to many in the source files! The way it works on your CultureNantes-map is what i like to use on my map.

Please help me with this awesom plugin!

Greatings, Hein