Press and hold the compass next to the home screen - then click toggle map.
The map may "randomly" close, but majority of the time its due to it being a swipe function.
If you click on the compass and swipe right, it will close it. If you swipe left when its closed it will open it.