更新时间:2023-02-14 14:37:44
V3 API应该可以更好地管理内存。是否简单地摧毁持有地图的div不符合您的需求?
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?
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?