socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
435 stars 139 forks source link

Is there a way to use this plugin with time-changing scalar fields produced from ASCII files? #154

Open mmirhi opened 6 years ago

mmirhi commented 6 years ago

Thank you so much for this awesome plugin.

I am currently using the Leaflet.CanvasLayer.Field plugin to plot certain temperature profiles (contour plots: https://github.com/IHCantabria/Leaflet.CanvasLayer.Field). The plugin reads ASCII files. I have temperature data taken every hour over a full day.

Currently, I have one ASCII file -that has the temperature data over a rectangular grid- for each hour. I want to be able to use this TimeDimension plugin to show the change in temperature field over the day. I saw Example 12 and I read how I can extend it to load GeoJSON step by step, but I could not apply a similar concept to my code.

[In other words, I want to be able to - at every time step- read an ASCII file, create a scalar field layer using canvaslayer.field, and show it for that hour.]

I appreciate all the help. -mmirhi