This is based on a mapbox.js example, but implemented with the leaflet-sidebar plugin instead.

Fork me on GitHub