Comments (6)
Hi Matthiue,
Thanks for bringing this up. For anyone else who's interested, here's some more info: http://stackoverflow.com/questions/10485582/what-is-the-proper-way-to-destroy-a-map-instance
I can try something similar to your idea and let you know how it goes.
from angular-gm.
Hi dylanfprice,
Thanks for your reply, I worked on it and came up with a proof of concept :
http://plnkr.co/edit/zxhJgOQEhPxPAX9AUCGs?p=preview
The rescue/reuse technique gives good results, tell me what you think and if I can help you for something.
from angular-gm.
Cool thanks for doing that. I will have some time to add this in at the end of this week.
from angular-gm.
That's awesome thanks a lot, I'm looking forward for your release
from angular-gm.
I got your basic idea working and put it in a separate branch: https://github.com/dylanfprice/angular-gm/tree/memory-leak-fix
It's not quite ready yet because I need to deal with a few issues like refreshing stale markers on the map.
I went ahead and put a build of the memory-leak-fix branch up: http://dylanfprice.github.io/angular-gm/angular-gm-0.1.0-memory-leak-fix.js. Let me know if that solves your memory leak and I'll fix those remaining issues!
from angular-gm.
Your are awesome, thank you !
I did an automated memory test, going through 300 views during 5 minutes, each view got a map, and here are the results:
- master branch : the memory grows up to 280MB
- memory-leak-fix branch: the memory never go upper then 35MB
Do not hesitate if I can do anything to help you.
from angular-gm.
Related Issues (20)
- AngularGM + Ionic on iOS - not zoomable, and infoWindow not working HOT 1
- Performance issues HOT 5
- Examples - Too much recursion HOT 2
- Cannot center the map, initially HOT 2
- Popup for train stations? HOT 2
- Differences from angular-google-maps HOT 1
- Selecting markers not working in angular-gm with more current versions of Angular HOT 5
- Add support for scrollwheel map option HOT 1
- Installation process in ubuntu HOT 2
- angular-gm.js missing HOT 1
- Documentation: Examples Not Loading HOT 2
- Bower package not up to date HOT 3
- Multiple marker on same location HOT 1
- AngularGM no longer works with Oct. 11, 2015 update to 3.22 release of Google Maps API HOT 5
- Using gm map inside <md-content ng-view> renders with weird stripe HOT 1
- Angular 1.4.9 HOT 2
- Labeled Markers? HOT 2
- using angular-gm with MarkerClusterer HOT 2
- gm-map not working with ng-repeat HOT 2
- add Marker drag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-gm.