In the options menu, you can configure controls/buttons, and the one for "internal view" also toggles the minimap. Hold it for 1 second to toggle its state.