CliffCloud / Leaflet.EasyButton

leaflet control buttons with icons and callbacks
http://cliffcloud.github.io/Leaflet.EasyButton/v1/
MIT License
520 stars 124 forks source link

Having a dropdown with the buttons #81

Closed Hallam1995 closed 6 years ago

Hallam1995 commented 6 years ago

Hi,

I have a map application with several 'jump to [city]' buttons. Is there a way I can combine these into a dropdown menu? So the user will see a 'cities' button, hover or click on it and then be presented with a list of cities.

Thanks

atstp commented 6 years ago

that's outside the scope of this plugin, but the source for the easyBar could be a decent jumping off point.

hosein commented 6 years ago

I'll put a bounty on this if it helps. I want to give the user the ability to export the data in multiple formats, and having mutliple buttons is ugly. A dropdown, or a fan-out (similar to drawing tools) would be ideal.