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

Make marker popup optional #176

Open goemaere opened 6 years ago

goemaere commented 6 years ago

I have a use case where I want to drag the marker to different points on the map, but I would like to diable the popup that appears on clicking the marker. The combination draggable and popup also does not make sense. If the marker is dragged, it still show the original address from the searchbar.

I can make a pull request with an extra option 'enablePopup' (default true) that skips the bindPopup() function and ignores the showPopup option if false.

What do you think?