searchForSymbolBoundary method
Searches for the boundary of a symbol denoted by the given id. Returns null if the symbol is not found.
Implementation
@override
MapRectangle? searchForSymbolBoundary(String id) {
Renderinstruction? result = renderinstructionNodes.firstWhereOrNull((element) => element is RenderinstructionSymbol && element.id == id);
if (result != null) return (result as RenderinstructionSymbol).getBoundary();
if (parent != null) return parent!.searchForSymbolBoundary(id);
return null;
}