Smart Rat City

More examples

  • Right aligned
  • The sidebar adapts to map container size
  • Proof that it works with the latest leaflet version (if not, please report it!)
  • Proof that it works with leaflet 0.7

autopan

Leaflet.control.sidebar({ autopan: true }) makes shure that the map center always stays visible.

The autopan behviour is responsive as well. Try opening and closing the sidebar from this pane!