-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overview map causes memory leak #6377
Comments
In your fiddle, you loop through all controls and remove them from the map. Does the situation change if you don't do that?
|
No, throwing out everything except I'm aware of the garbage collection, but that's not the issue at hand. Do you need a more detailed explanation on how I profiled this? |
Ok, so the issue here is probably that the overview map's target is never set to |
That helps, thank you for the suggestion. Unfortunately I won't be able to provide a pull request anytime soon because my current environment does not support |
fixed with #6379 |
Removing a map (with an overview map control) from the document leaks memory. Here is a fiddle for reproducing the issue: http://jsfiddle.net/pefn7L5n/2/.
This looks similar to #3420 (
handleResize_
appears in the memory profiler), but is related to the overview map control (when no such control is added to the map the leak no longer occurs).Is there some other way to explicitly destroy the map (other then call
map.setTarget(null)
)?The text was updated successfully, but these errors were encountered: