avoid map showing before the page is loaded