-
Notifications
You must be signed in to change notification settings - Fork 68
.remove function for vectorField doesn't stop d3.timer #41
Comments
setting maxAge in options to 0, beforehand would alleviate the problem. But a better solution is required. |
I have the same problem. I try to use a slider https://github.com/Eclipse1979/leaflet-slider, I remove correctly the layer but I have problem with vf and I generate the same error The webpage is http://demo.gter.it/grib_viewer/ The code is the following:
@karunakar2 where I can add the option maxAge? |
If useful for other users I have solved removing and adding I will add my code as soon as possible on a github repository. I will use your plugin for a webgis of a european research INTERREG project! In our repository I will add a python script to convert grib2 file in a lot of ascii file with u and v. I hope it can be useful Congratulations for your work @Pedrazl it is really nice! |
Thanks @rmarzocchi84 but the "father" of the plugin is @VictorVelarde. I'm just trying to keep it alive, and maybe in the future to extend it furthermore. |
After adding a layer built on vector of two asc files based u,v fields, attempt is made to remove the layer from the map, but the d3.timer for animation remain looping over, complaining that latlon point refers to null.
L.CanvasLayer.VectorFieldAnim.js:122 Uncaught TypeError: Cannot read property 'latLngToContainerPoint' of null
at i._drawParticle (L.CanvasLayer.VectorFieldAnim.js:122)
at L.CanvasLayer.VectorFieldAnim.js:109
at Array.forEach ()
at n (L.CanvasLayer.VectorFieldAnim.js:108)
at L.CanvasLayer.VectorFieldAnim.js:52
at Mn (d3.v4.min.js:2)
at Tn (d3.v4.min.js:2)
Any pointers here?
thank you.
The text was updated successfully, but these errors were encountered: