Map should not receive the click event when the map is invisible.