On Apr 8, 10:41 am, CharlesHarrison <[email protected]> wrote: > > > But the map shouldn't stop responding, must be something going wrong > > with your code. > > No. If a user pushes 'n' pulls or zooms in and out of a Google map > too often without giving the map time to respond, eventually it sulks > and stops working.
No, Mike's right. It's not the map which stops working, it's the browser. So a coding solution probably won't work because you can't interrupt what the browser is doing with the code: you need an application-level trigger like F5. Even that can fail and require the browser window to be closed to stop whatever's going on. > Hence I need to know if there's an 'official' way to clean up and > relaunch the map. There isn't. If you simply create a new map in your div you run the risk of memory leaks. GUnload is provided to minimise those, but that unloads the API in order to achieve the garbage collection, so you would need to reload that using the AJAX loader and then recreate the map. And you can only do that if you can actually interrupt whatever the browser's doing when the map stops working. -- 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.
