I use the Google Maps Javascript API to display maps on my site with extra markers. This is a trigger.
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
This works fine, but it takes a few seconds to display. I put the loading image in a div map as follows:
<div id="map_canvas" style="width:700px; height:500px"><img src="/image/ajax-loader.gif" /></div>
But the image is never displayed, just a blank page until the map shows.
The image works because if I turn off the map download function, the image will be there. Therefore, I think the google map clears the div before loading the map.
Any ideas how to show loading feedback to the user while waiting? I could not find the function in the API ...
source share