I can think of at least 2 options: 1. Don't use an event to load the map at all. Simply place your script tags as the last thing before the close body tags and write them inline.
2. Use addEventListener (or attachEvent for IE) to add a load event handler to the document. See http://www.quirksmode.org/js/events_advanced.html for a good description of the process. Chad Killingsworth On Mar 2, 9:39 pm, calibanter <[email protected]> wrote: > Very new here. But all of the examples I can find has the map object > actually returned on the body tag. I've got a php script that gets > coordinates out of a database and puts together Google Map v3 > Javascript that I can see is correct and I can get to work (by moving > the pieces around). BUT I can't put the Initialize call on the body > tag because the body tag happens logically much earlier than I produce > the JavaScript. A user works through various form objects on a single > page in order to get to a point where they can collect the coordinates > that produces the JavaScript. At which point, I've got a correct > Initialize function with correct data, but it's way too late to call > the function with Body onLoad. > > So what other JavaScript event can write the map after the body tag is > declared? Someone must have sorted this out by now. Thanks for your > help. -- 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.
