The
ol/control/Timeline displays a timeline to navigate on the map.
-
Use the getFeatureDate and endFeatureDate option to define the start and end date of the features.
-
Use the getHTMl option to format the contents in the timeline.
-
Use the ol-zoomhover class name to add a zoom effect on hover.
-
When a feature is clicked on the timeline a select event is fired on the control.
-
You can center a date on the line using the setDate() method.
-
Use the getDate() method to get the current date.
-
Listen to the scroll event to know when the line scrolls
You can use the Timeline to filter features using a time interval
or as a time slider to display chronological sequences on a map.