> Where exactly should i try popping
> this code in?
>
> var map = new GMap2(document.getElementById("map"));
...
>       map.checkResize();

If the var map =... is running before the DOM is constructed, so too
will be the map.checkResize() so of course it won't work.

You didn't note the last bit in Larry's advice -
   "You can try calling map.checkResize() once the domain has
finished
rendering."

Look again at  -
 
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/8f9669ba0e09d84/f904b5b833e7e231?lnk=gst&q=window.onload#f904b5b833e7e231

Think about ..

var map

function myOnload() {
   map = new GMap2(document.getElementById("map"));
   map.addControl(new GLargeMapControl());
  ... etc
}

window.onload =  myOnload;

See
    http://javascript.about.com/library/blonload.htm
for the basic idea

Bear in mind the HTML that you don't control may already have some
other onload events, and this will mess them up.
So see here for a more complete solution example
   http://www.netlobo.com/wom.html

cheers, Ross K

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