>  ... onClick="resizemap()" > Close Map </a ...
>
> Is the event trigger enough to trigger a resize?

Not really ; the purpose of running
      google.maps.event.trigger(map, 'resize');
is to inform the API that the div that the map lives in has changed
size ; the API will redraw the map as needed to fit its new home.
It doesn't "do" anything to change the size of the div it lives in,
that is up to you.

As written above, that certainly won't hide the map.

As an example of usage;
    Initially build a map in a hidden div.
    When the div is un-hidden, also trigger the map resize
functionality.
    When hiding the div, no need to do anything else, its being hidden
so who cares if the map doesn't fit nicely.

Hiding, showing, or resizing the div container needs to be done by
code that you write or import (e.g. lightbox).  The map won't show
itself or hide itself, just needs to be informed about changes.

So all you have to do is somehow stitch the map call to resize, into
the end of of whatever un-hides the div.  That seems to complicated
with your fade effects etc., but that isn't a maps issue.

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to