Cant find "close" method in GMap2 class. Is it undocumented?

I'm not trying to hide my maps - I need to free the memory which is
used by specific map.
My application is "one-page" - I'm using only XHR requests for
displaying content.

The design is like that (sorry, cant give a link, its not deployed
yet):
1) User is loading widget and it is displayed on the screen.
2) Another widget can be displayed later above the 1st one.
3) Later If the user will click on the link to display the 1st widget
again - it will be shown immediatly, without loading.

So, if I'll use GUnload all maps will be destroyed - including those
which are on hidden widgets.

May be the solution is - to use iframes? (embed each map into iframe
and use GUnload in context of iframe)

I think also that GUnload can be easily tweaked to free only
particular maps, not all, can anyone point me to its source code?

Thanks.


On Aug 28, 5:57 am, igloo <[EMAIL PROTECTED]> wrote:
> Have another look at the API documentation. GUnload tidies up the
> Javascript memory map for ALL the Maps API script to try to prevent
> memory leakage before closing the host page on the browser (you are
> using a browser?). All objects should have a close method, but just
> calling a 'close' on a single map without tidying up all the children
> can cause the dreaded memory leaks that GUnload is trying to avoid.
>
> If you are just trying to remove them from the display, you can use
> css to hide that particular map container.
>
> A link to your page would be useful.
--~--~---------~--~----~------------~-------~--~----~
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