MapShape.animate

Syntax

animate(step: Number);

Parameters

step. Animation share to be played. Parameter value ranges between 0 and 1.

Description

The animate method plays animation of map layer area.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). For the map layer area with the RU-KYA identifier play half of the animation process that consists of changing the starting yellow fill color to initial green:

// Get map layer area with the RU-KYA identifier
var shape = map.getShape("RU-KYA");
// Set yellow color as the starting fill color for the area
shape._prevColor = PP.Color.Colors.yellow;
// Play 50% of animation
shape.animate(0.5);

After executing the example half of the animation that consists of moving from starting yellow fill color to initial green is played for the map layer area with the RU-KYA identifier:

See also:

MapShape