maptype according to travel mode. bugfix: cancel of directions mode
refactored