hallahan / LeafletPlayback

This is a Leaflet plug-in that plays back points that have a time stamp synchronized to a clock.
http://leafletplayback.theoutpost.io
Other
483 stars 167 forks source link

[question] using this to playback static data #47

Open tconroy opened 8 years ago

tconroy commented 8 years ago

Hey there!

I have a collection of "reports", containing a lat, long, and timestamp. There are a lot of data points collected over the course of a couple years.

I wanted to use leafletPlayback to display these points chronologically -- each point will only have one lat/lng/timestamp. They will become visible when the timeline hits the day they first appeared, remain visible for a couple more days in the timeline, then disappear after about a week of time has elapsed.

Is that doable for LeafletPlayback? the examples all seem to relate to tracking the movement of a point over time. I just want to have static points with their visibility mapped to the playback scrubber.

Thank you!

hallahan commented 8 years ago

Out of the box, no. There is no way for your marker to disappear.

If your samples are many years apart, you'll want to set your tickLen to a very high number.

tconroy commented 8 years ago

Thanks for the response. The samples are days apart, over a 3 year period -- so my timeline would be approx 1100 "days" long. The goal is for a marker to be visible on its recorded day and then fade out as the timeline moves away from that day.

I haven't gotten a chance to dive into your source yet, but would making the markers removable (or at least fadeable/transparent) be a difficult process?

On Oct 26, 2016, 10:59 AM -0400, Nicholas Hallahan notifications@github.com, wrote:

Out of the box, no. There is no way for your marker to disappear.

If your samples are many years apart, you'll want to set your tickLen to a very high number.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/hallahan/LeafletPlayback/issues/47#issuecomment-256374145), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABiOeKnUjHOtItmqBToNE3ib5uW3SLxGks5q32rTgaJpZM4Kdkeo).