perliedman / leaflet-control-geocoder

A simple geocoder form to locate places. Easily extended to multiple data providers.
http://www.liedman.net/leaflet-control-geocoder/
BSD 2-Clause "Simplified" License
560 stars 220 forks source link

[Feature] Standard control collapsed: boolean; to be closed on icon click #326

Open sabatale opened 3 years ago

sabatale commented 3 years ago

Hello,

I can see the control collapsed: boolean; exists to set the search bar to collapsed/expanded by default.

However I was wondering if there is a way, or any tips, to collapse the bar when clicking the search icon?

I haven't found a way to collapse it manually when the control is set to False.

Thanks!

EDIT: I hadn't realized the icon also sends the request (same as ENTER), so it could be a small X button at the top-right of the bar.