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].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.