MapChart.TimelineStepChanged

Syntax

TimelineStepChanged: function(sender, args);

Parameters

sender. Event source.

args. Event information. Available argument: CurrentStep - number of the current timeline step.

Description

The TimelineStepChanged event is fired after changing timeline step.

Example

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:

MapChart