> ok, i undestand it like that:
>
> script.src = "http://www.google.com/jsapi?
> key=ABCDEFG&callback=loadMaps"
>
> ... ensures to call callback="loadmaps" when api-script is fully
> loaded

errm , kind of ...

The Google loader (jsapi) just loads other modules as you request them
- maps, search, etc.
The callback above gets triggered when the loader itself has finished
loading.
So, no map functions are available yet, the maps module hasn't been
requested yet.

> and therefor i can define what ever i want into callback="loadmaps".

Ye-es, but if you want the maps functions you will need to ask for the
'maps' module.
If you do ask for the maps module, you must not try to use any maps
functions until the after the maps module has loaded.
So, you need to put ANOTHER callback on the maps module load request
to run your own code to build a map.

Have another look at
   http://code.google.com/apis/ajax/documentation/#Dynamic
initLoader() = loads the jsapi loader ; when done, callback ...
loadMaps() = loads the maps API proper ; when done, callback ...
mapsLoaded() = your own code

--

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