The map div is zero sized at the moment when Map is created. It
takes its final size when the tab is clicked open. There is 'resize'
event of Map that you should trigger after the 'map' tab is opened.

You can test triggering 'resize' manually by slightly adjusting size
of your browser
window.

Documentation says about 'resize':

"Developers should trigger this event on the map when the div changes
size: google.maps.event.trigger(map, 'resize') ."

----------

v2 has 'size' option for GMap2. There used to be an undocumented
'size' property in v3 Map options too. That would be a simple solution
for the problem that still seems to come up twice a day.

There was a feature request for 'size' option. The request was
considered by the team but it was not accepted and the case was closed
as 'fixed'.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1997

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to