Working with Map > Classes > MapShape > MapShape.updateLabelPosition
updateLabelPosition();
The updateLabelPosition method updates label position for map layer area.
The example of use is given in the page with description of the MapShape.rebuildLabel method.
See also: