Implements direction switching in the map control panel.