Google Maps JavaScript API V3 - 卸载/解构器/删除/删除 [英] Google Maps JavaScript API V3 - Unload / Deconstructor / Delete / Remove

查看:70
本文介绍了Google Maps JavaScript API V3 - 卸载/解构器/删除/删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在AJAX网站上运行了,所以我无法找到任何方法来删除和清理Google地图。我希望完全杀掉它,而不必重新加载页面。



我希望有一个 .unload() .deconstruct()方法,但似乎找不到。



有什么想法? / p>

解决方案

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?

这篇关于Google Maps JavaScript API V3 - 卸载/解构器/删除/删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆