I wonder if we should wrap this logic up in a function, so we could call, e.g.:

```javascript
map.on('click,drag', hideSidebar)
``

(and I think that's the jquery syntax for matching multiple events. might be wrong..)