MapChart.scale

Syntax

scale(dir);

Parameters

dir. Number. Scale change direction. If the value is greater than 0, the scale is increased by 10%, if the value is less than 0, the scale is decreased by 10%.

Description

The scale method increases the current scale.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component).

// Increase current map scale
map.scale(1);

After executing the example the map scale is increased by 10%.

See also:

MapChart