Jamie G
Jamie G

Reputation: 1743

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?

Upvotes: 13

Views: 12067

Answers (1)

bamnet
bamnet

Reputation: 2554

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?

Upvotes: 8

Related Questions