Or, just enter the width and height of the map itself when you execute
the script. Example:

map = new GMap2( document.getElementById("map"), { size: new GSize
(mapwidth, mapheight) } );

Change "mapwidth" and "mapheight" to the values you wish. Then you
don't have to worry about IE in tables or move your script to the
bottom of the page...


On Jan 9, 8:09 pm, donb <[email protected]> wrote:
> Since the map needs to know how big its container is, the container
> needs to be loaded first.  Having the script buried in with the html
> means the script loads (and executes) while the page is loading, not
> after..  Two things:  (1)  load the script in the header, (2) utilize
> an onload event to begin initializing the map after the page is fully
> loaded.

--~--~---------~--~----~------------~-------~--~----~
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