socib / Leaflet.TimeDimension

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

how to use one time dimension control multiple layer #138

Open steven224 opened 6 years ago

steven224 commented 6 years ago

Hi, @bielfrontera First of all, thanks for the nice plugin developed I have more than one GeoJSON data file, these dataset have common time range.

what I would like to do is using one time dimension control all layers generated by datasets.

For example, in 9AM, there are two markers in map with different icon. and as time pass by, the two icon will move accordingly

is it possible to do that?

gtg3vv commented 5 years ago

This may not still be useful to you, but for future this can be done easily by creating one time dimension control, and then adding several time dimension layers. I am using the folium leaflet wrapper and I just check for the existence of the .timeDimension variable when deciding whether or not to create a new control.

rev0nat commented 2 years ago

Hi, this is an old thread but I would love to hear if there were any advances in solving this problem.