Comments (2)
I can't reproduce it (in Dartium and with dart2js).
I have added the following code to https://github.com/a14n/dart-google-maps/blob/master/example/04-overlays/marker-simple/page.dart :
marker.onClick.listen((_){
for (int k = 0; k < 10000000; ++k) {
marker.onClick.listen((_) => print('foo')).cancel();
}
window.alert('ok');
});
When I click on the marker several times, the memory moves a little up and down but it doesn't look like a leak.
from dart-google-maps.
Weird, I think we're both right. If the marker isn't attached to the map
and you instead do the listen/cancel in response to a DOM event, it runs
much slower and leaks memory. The solution in my real code is probably to
cancel everything before removing the markers from the map. Not sure if
this is worth fixing in the library, or even possible.
On Tue, Jan 14, 2014 at 12:37 AM, Alexandre Ardhuin <
[email protected]> wrote:
I can't reproduce it (in Dartium and with dart2js).
I have added the following code to
https://github.com/a14n/dart-google-maps/blob/master/example/04-overlays/marker-simple/page.dart:marker.onClick.listen((){
for (int k = 0; k < 10000000; ++k) {
marker.onClick.listen(() => print('foo')).cancel();
}
window.alert('ok');
});When I click on the marker several times, the memory moves a little up and
down but it doesn't look like a leak.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-32246852
.
from dart-google-maps.
Related Issues (20)
- Google Maps drawing manager HOT 1
- map.projection.fromLatLngToPoint not correctly bound HOT 3
- Error loading Google MAP in Web HOT 8
- Error with DirectionsService HOT 1
- List<dynamic> is not List<QueryAutocompletePrediction?>? in getQueryPredictions() HOT 3
- Heatmap HOT 3
- Move Camera not working HOT 7
- Remove Polyline from Map HOT 2
- Map view has Infinite Width HOT 1
- Fit bounds doesn't fit properly HOT 4
- Encoding.decodePath throws when running with webdev serve HOT 3
- How to run the demo? HOT 1
- Drawing a layer over part of the map HOT 1
- getPanorama throw a exception when consult not available location for streetview HOT 8
- Multiple Dependency Issue HOT 1
- Google Maps JavaScript API has a new loader, should this lib use it (or expose its API)? HOT 2
- Map not shown in TabBarView after upgrading from flutter version 3.3.10 to 3.7.0 or newer HOT 1
- Using legacy MapLabel JS from flutter application HOT 2
- Migrate to `package:web` HOT 11
- Error with > 7.00 version : Uncaught (in promise) TypeError: Illegal constructor HOT 1
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 dart-google-maps.