MapLayer.rebuildLabels

Syntax

rebuildLabels();

Description

The rebuildLabels method rerenders labels for regions of the current map layer and child layers.

Example

Execute the example given in the MapShape.rebuildLabel page, but before that replace the scenario lines

shape.rebuildLabel(label); 

and

shape.updateLabelPosition();

with the following code snippets respectively:

map.getLayer("Regions").rebuildLabels();

and

map.getLayer("Regions").updateLabelPositions(0.5);

The result of example execution is the same.

See also:

MapLayer