开发者

new google.maps.LatLngBounds() and memory leak in Android and google maps

开发者 https://www.devze.com 2023-03-29 04:46 出处:网络
I\'d like to know if there is a way to clear (delete) a google.maps.LatLngBounds(), as I have one with some point and for example clicking on a button I want just have a new point in the map. So, havi

I'd like to know if there is a way to clear (delete) a google.maps.LatLngBounds(), as I have one with some point and for example clicking on a button I want just have a new point in the map. So, having something like bounds = new google.maps.LatLngBounds().extend(point) if bounds var already existed wouldn't create a memory leak?, I mean, previous bounds will remain unassigned. FYI: It works, but I don't like to create开发者_Go百科 a memory leak.

Thanks in advance. Guillermo.


I was said that is might depend on each browser javascript engine.

0

精彩评论

暂无评论...
验证码 换一张
取 消