MapChart.TimelineStepChanging

Syntax

TimelineStepChanging: function(sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments: NewStep - number of next time line step, Pause - timeline moving pause checkbox, if the arguments is set to True, timeline moving is paused.

Description

The TimelineStepChanging event occurs before 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 TimelineStepChanging event
map.TimelineStepChanging.add(function (sender, args) {
    console.log("Next timeline step: " + args.NewStep);
});

After executing the example on timeline step change the console displays number of the next step.

See also:

MapChart