MapTimeLine.Step

Syntax

Step: function (sender,args)

Parameters

sender. Event source.

args. Event information.

Description

The Step event occurs on moving to the succeeding step of the timeline.

Example

To execute the example the page must contain the MapChart component named map (see Map Layout on HTML Page) for which a timeline is set up (see Example of Timeline Setup). Add a handler for the Step event:

tl.Step.add(function ()

{

    console.log(tl.getCurrentStep())

})

After executing the example enable timeline animation (click the button ). The number of the passed step is shown to the console after each step.

See also:

MapTimeline