Try the following:

google.maps.event.trigger(map, 'resize')

This lets the map know that you have resized its container.


On Tue, Feb 22, 2011 at 11:23 PM, Luo Jiesi <[email protected]> wrote:
> I have a div like this:
> <div id="maps"></div>
> and I initialize the map like this :
> var map =  new google.maps.Map(document.getElementById("maps"),
> someOptions);
> When I increase the div#maps 's width, strange things happen. There's
> always a blank area in the div. This will appear in FF 3.7, chromium
> 10, ie6. If i choose inspect element in ff or chromium , the blank
> area will be filled with the map images again. How to solve this?
>
> --
> 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.
>
>

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