On Oct 16, 11:08 am, "George V. Reilly" <[email protected]>
wrote:
> On Oct 16, 7:59 am, Matt Ball <[email protected]> wrote:
> > Try a completely different approach: use google's Ajax loader to load
> > the Maps API code asynchronously. The general skeleton would be this: [...]
>
> >             google.load('maps', "2.x", {other_params:"sensor=false"});
> >             google.setOnLoadCallback(function() { /* do everything here */ 
> > });
>
> [...] but otherwise it seems to work perfectly.

Unfortunately, this proves to be not wholly reliable either -- though
it's more reliable than $(document).ready. I've seen two or three
times where the callback fired, but not all of the Google maps
javascript had loaded.

I also experimented with
        google.load('maps', "2.x", {other_params:"sensor=false",
callback: init_map});
but the callback never fired in this case.

/George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to