A simple to ask but difficult to answer question:
I want to create a control like the one in the Leaflet layers example:
http://leafletjs.com/examples/layers-control.html
Notice that the control is a small button, until pressed. When pressed, it expands, and shows all options. I can't find anywhere in the documentation on how this was implemented, or how I can copy this behaviour. Does anyone have any idea?