ahh makes sense. I don't really have any say in the HTML, the site is
run by a company. So I also don't really have access to the head or
body. Seems like the only option is to try the map.checkResize(). Can
you please assist me a little more. Where exactly should i try popping
this code in?
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng( 41.0259, -73.6259), 17);
map.checkResize();
I tried this, and it didn't work.
On Nov 3, 5:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Nov 3, 2:04 pm, nowwhatnapster <[EMAIL PROTECTED]> wrote:
>
> > thanks for the workaround, i tried it... but... that must not be the
> > problem then. I'm still getting the same issue as before. Works in FF
> > but not IE... It's not that it's not even working, it works, the map
> > is just skewed and resets itself every time you click the marker.
>
> Search for "IE
> table"http://groups.google.com/group/Google-Maps-API/search?group=Google-Ma...
>
> IE will not define the size of the map until it has fully defined the
> DOM (and the onload event fires). You are creating the GMap2 object
> before that happens.
>
> You can try specifying the size in the optional size argument to the
> GMap2 constructor.
> You can try calling map.checkResize() once the domain has finished
> rendering.
> You can try calling map.setCenter(....) once the domain has finished
> rendering.
>
> The best thing to do would be to create an onload function that
> creates the map and assign it as a body onload function as Rossko
> suggested...
>
> Your HTML is still invalid.
>
> -- Larry
>
>
>
> > On Oct 31, 4:21 pm, Rossko <[EMAIL PROTECTED]> wrote:
>
> > > > multiple body tags >_>. Either way I have no way of accessing the real
> > > > body tag so it's in the hands of this company unless anyone has any
> > > > better ideas.
>
> > > If you can remove the extra <body>, but are then left with one you
> > > can't set your onload() into, you could see -
>
> > >http://groups.google.com/group/Google-Maps-API/browse_thread/thread/8...
> > > There are ways of setting the onload function from javascript, without
> > > direct editing access to the <body>
>
> > > That assumes you can make the HTML valid in 'your part'
>
> > > cheers, Ross K- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---