Display map correctly in a hidden tab

Fixes #582