Add #52: Map is not hidden when the DOM element is destroyed