JavaJ:
We've figured out a solution that works pretty much all the time.
create a function that runs in the body 'onload' that way all of your
code will be loaded.
use the dynamic load syntax
google.load("maps","2", {callback:somefunction});
It will keep everything tidy and you won't have to worry about
'compiler order'
EXAMPLE:
<script type="text/javascript">
function callbackFunc() {
//your google map init and related goes here
}
function _init() {
google.load("maps","2", {callback:callbackFunc});
}
</script>
<body onload="_init()">.....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---