map renders just when the navigation view is displayed.