Look at the documentation:

http://code.google.com/apis/maps/documentation/reference.html#GMap2.checkResize

The checkResize() method is all you need to call after making the map
container visible from hidden.

Martin.


On 9 July, 15:42, Claudio <[email protected]> wrote:
> Hi,
> I would create an hide/show map with javascript.
> I put the map into a div with display:none to hide the map.
> When a user click on "Show map" I set display:block with js, but the
> map is not centered and do not load all the areas.
>
> If I set by default display:block the map is perfect, but if a user
> clicks on "Hide map" setting display:none and then clicks on "Show
> map" setting display:block, the map is not centered and do not load
> all the areas.
>
> Someone knows how to solve?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to