getBoundary method
Returns the boundary of this object around the center of the area or the poi. If the boundary cannot determined exactly we need to estimate it. This method is used only if the renderinstruction adds itself to label or clash (see LayerContainer)
Implementation
@override
MapRectangle getBoundary(RenderInfo renderInfo) {
MapSize textSize = getEstimatedTextBoundary(renderInfo.caption ?? "", strokeWidth);
return calculateBoundaryWithSymbol(position, textSize.width, textSize.height);
}