TimelineStepChanged: function(sender, args);
sender. Event source.
args. Event information. Available argument: CurrentStep - number of the current timeline step.
The TimelineStepChanged event is fired after changing timeline step.
To execute the example the page must contain the MapChart component named map (see Example of Creating the MapChart Component).
// Process the TimelineStepChanged event
map.TimelineStepChanged.add(function (sender, args) {
console.log("Current step of the timeline: " + args.CurrentStep);
});
After executing the example on timeline step change the console shows number of the current step.
See also: