In v2 we would pass a callback to the Maps JS so we would know when we
can start creating our map. If I pass a callback to v3 (e.g.
http://maps.google.com/maps/api/js?sensor=false&callback=myCallback),
it does not work how I expected and, in fact, I don't know if it works
at all.
I expected myCallback() to be called at the end of the JS file, once
everything is loaded. Instead, it is called within google.maps.Load()
and I don't see anything that called google.maps.Load() or any other
of the google.maps methods within the v3 JS file.
Digging deeper, if I don't include a callback parameter when I request
the JS, the callback line is naturally missing, but there is also an
additional line at the very end of the file: google.maps.loadScripts
(). google.maps.loadScripts() loads a JS file that in turn calls
google.maps.Load() at the end of its execution sequence.
Since google.maps.loadScripts() is never called in the version of the
v3 JS file with a callback, google.maps.Load() is never called. This
suggests to me that the call to google.maps.loadScripts() at the end
of the v3 Javascript file is being incorrectly omitted.
Am I correct? I have cross-posted this in the Issue Tracker as a v3
bug (#1355).
Peter Robinett