On Mar 19, 11:46 am, pablo <[email protected]> wrote: > I have a page with two gmaps. > One of the maps doesn't change but the other is being destroyed and > created several times. I can't use GUnload() because it'll destroy > both maps. > Do I have to worry about memory leaks? > Is there a function to prevent memory leaks when destroying a single > map?
The recommended way of dealing with two maps is to change the second one (set its centre and zoom, change the markers etc) using the API rather than completely destroy it and recreate it. If you don't destroy it, you should have less to worry about with memory leaks. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
