I would also suggest to give an id to the loading DIV and use a listener to
hide it when the map is loaded (via style settings (visibility/display) or a
jslib like jQuery or Dojo).
I think 'idle' is a good event, or maybe even 'tilesloaded' would do.
google.maps.event.addListenerOnce(map, 'idle', function(){
// hide or destroy the loading DIV
});
Hope it helps,
Davide
2010/7/26 NWIPHPDEV <[email protected]>
> Just fill the div with a loading gif.
>
> <script type="text/javascript">
> function init(){
> loadMap...blah...blah
> }
> </script>
>
> <body onload="init()">
> <div id="map">
> <div style="text-align:center">
> Loading, Please wait...<br>
> <img src="my-loading-icon.gif"/>
> </div>
> </div>
> </body>
>
> On Jul 25, 4:27 pm, Trachy <[email protected]> wrote:
> > Hello,
> > have you an example of how to realise a loading message before map
> > appears.
> > Thanks
> > Trachy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.