action for toggling the map so an action can be used to toggle the scanner and the map together