Open barney2074 opened 3 years ago
The current time is available as a property on the timeline control, time
. You can see this in the borders example -- open up the dev console and type in timelineControl.time
. However, this isn't set until the control has at least one timeline assigned to it.
The code to show that list is here -- essentially you could just sort displayed
using (e.g.) lodash's sortBy
thanks Jonathon
I've got the current time working without too much trouble The lodash documentation is a bit confusing (to me at least) so I'll have to tinker around with it
Andrew
Hello,
loving this plugin If anyone can help me with the following questions, I'd be very grateful:
How can I display the 'current' date outside of the timeline control? It's good having it next to the slider, but I'd like it to be more prominent and placed elsewhere on the page
If I'm using a sidebar list of currently displayed features (as per the earthquakes sample), how would I sort these based on a particular attribute ? So relating to this to the earthquakes, they might be sorted by magnitude (quake.properties.mag)
thank you
Andrew