Shows or hides the UI when tapping on the map.