Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps JavaScript API V3 - Unload / Deconstructor / Delete / Remove

I can't find any way to remove and clean up a Google map when using the V3 API.

I've got it running in an AJAX site so I want to kill it off completely without the page having to be reloaded.

I was hoping for a .unload() or .deconstruct() method, but can't seem to find one.

Any thoughts?

like image 369
Jamie G Avatar asked Feb 24 '12 18:02

Jamie G


1 Answers

The V3 API should do a much better job managing it's memory. Does simply destroying the div that holds the map not meet your needs?

like image 152
bamnet Avatar answered Sep 30 '22 18:09

bamnet