On Nov 20, 5:03 pm, Ken Priest <[email protected]> wrote:
> I have the exact same problem on one of my client's sites, but this
> page has no tabs hiding the map AND it was working fine before some
> minor design changes were made to the page.
> Problem is only in IE7:
> Old Page (should look fine in IE7):http://www.buchanhomes.com/_OLD/locator/
> New Page (minor cosmetic changes) - PARTIAL MAP 
> DISPLAY:http://www.buchanhomes.com/locator/
> *Here is what it looks like in 
> IE7:http://www.buchanhomes.com/misc/bad_google.jpg


It looks the same in IE6.

>
> I did not write the js code and it looks like it is using a script
> called GPlotter 0.90. NO CHANGES were made to any of the javacript.
>
> I see the problem still exists on CaboDave's site, so does anyone have
> a fix or a clue?

The issue is that like all these problems the map is being initialized
before the DOM is defined enough so the API gets the correct size for
the map div.  Move the call of init either to the body onload event
(so it doesn't get called until the page has completely rendered) or
move the call to the very end of the page (just before the </body>
tag).

  -- Larry



>
> On Nov 8, 12:16 pm, David Girard <[email protected]> wrote:
>
> > Yes - I was just testing it out to see if it might work in there. It was not
> > there before.
>
> > Ideally it needs to get called when someone clicks on the tab, but DTABS
> > doesn't offer that. I can add some javascript when some clicks on a tab, but
> > have yet to figure out how to display a tab from within that javascript...
> > life is just a series of hoops :-)
>
> > Dave
>
> > On Sun, Nov 8, 2009 at 11:06 AM, Andrew Leach <[email protected]
>
> > > wrote:
> > > On Nov 8, 6:29 pm, CaboDave <[email protected]> wrote:
>
> > > > var map = new GMap2(document.getElementById("map_canvas"),{size: new
> > > > GSize(599,487), mapTypes:[G_NORMAL_MAP,G_SATELLITE_MAP]});
> > > > does that not specify a size properly?
>
> > > Yes, it does, but you also have map.checkResize() in your initialize
> > > function -- when the API does that, it asks the browser what size the
> > > map is at that point. During initialisation, the map will have zero
> > > size, and your {size} option gets reset.
>
> > > I recommend removing that checkResize() line. If you want it in
> > > somewhere, it needs to go wherever the tabs do something (is that
> > > dtabs.js?) in order that it's done when the map is unhidden.
>
> > > Andrew
>
> > > --
>
> > > 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]<google-maps-api%2Bunsubscribe@
> > >  googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-maps-api?hl=en.

--

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=.


Reply via email to