Added event firing on close

Added event firing on sidebar closing by clicking on the cross. Event can be handled in the code, for example by resetting the map or by changing view(pan/zoom).