admin管理员组文章数量:1345734
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 pletely 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?
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 pletely 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?
Share Improve this question edited Aug 21, 2012 at 14:55 sth 230k56 gold badges287 silver badges370 bronze badges asked Feb 24, 2012 at 18:17 Jamie GJamie G 1,7433 gold badges21 silver badges44 bronze badges 2-
There is no such thing. V2 had
GUnload()
. Did you think about loading map into the iframe? – Cheery Commented Feb 24, 2012 at 19:30 - Interesting idea, using it via an iframe would make cleaning it up nice and easy. It would mean reworking some of my website's controls though. Will certainly do this if I run out of other options! Thanks – Jamie G Commented Feb 26, 2012 at 10:23
1 Answer
Reset to default 8The 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 V3UnloadDeconstructorDeleteRemoveStack Overflow
版权声明:本文标题:Google Maps JavaScript API V3 - UnloadDeconstructorDeleteRemove - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743738060a2530375.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论