Without looking at your code, and from a general JS point of view, I
would recommend some type of DOM removal of your element.
This is mainly to avoid memory leaks and multiple instance issues.
Just destroy the DIV on "close".

I don't believe there is a type of "unload" method like there was in
API 2 (Some one can correct me here). It just comes down to the care
you put into your own Javascript

On Jan 5, 2:01 am, nobullet <[email protected]> wrote:
> Hi guys.
>
> I'm showing Google Maps on some kind of modal dialog  (z-indexed div
> with shadow etc).
>
> So when user opens this modal dialog I create the DOM node for map and
> run initialization:
>
> var someMap = new google.maps.Map(createdElement, {...});
>
> Do I need to run some kind of finalization/shutdown  method of someMap
> object when user closes modal dialog (removes DOM node with map from
> DOM tree)?
>
> Nothing in documentation or API.
>
> Thanks.

--

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