okfn / timemapper

Create and share elegant timelines and timemaps fast
http://timemapper.okfnlabs.org/
MIT License
274 stars 60 forks source link

Show time on the map by coloring the map markers #63

Closed rufuspollock closed 10 years ago

rufuspollock commented 10 years ago

Use a colorscale to indicate the age of events - oldest events are grey, newest are red.

More elaborate would be to fade-off for both past and future.

Implementation

Probably can't use classic markers but need circle markers.

atomrab commented 10 years ago

Fade-in/fade-out also being used by timemap.js in Hestia interface for reading Herodotus -- find it pretty effective, except it starts bright at appearance on the right edge and fades to half tone by middle of timeline span, where one would like it to be brightest when in the middle of the timespan shown in the timeline.

http://hestia.open.ac.uk/herodotus/basic.html

rufuspollock commented 10 years ago

You can do this using opacity field in leaflet

main problem is locating where we are (timelinejs basically has no events at all!) and setting opacity appropriately relevant to the present (simpler might be to just to set this up so opacity increases linearly from start to end rather than updating relative to where one is right now ...)