MapTimeline.getIsStarted

Syntax

getIsStarted ()

Description

The getIsStarted method determines if the time scale animation has started.

Comments

The method returns True if the animation has started, or False if otherwise.

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 button clicking which removes all time scale labels if the animation of the scale is enabled:

var button = new PP.Ui.Button({

    ParentNode: document.getElementById("div2"),

    Content: "Hide ticks",

    Click: function (sender, args) {

        var tl = map.getTimeline()

        if (tl.getIsStarted() == true) { tl.getMapSlider().getSlider().removeTicks() }

    }

})

After executing the example click the button to start timeline animation. Next click the Hide Ticks button: all the scale labels are removed.

See also:

MapTimeline