rebuildLabels();
The rebuildLabels method rerenders labels for regions of the current map layer and child layers.
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: