matchNode method
Checks the nodeProperties and adds itself to the layerContainer if there is something to draw.
Implementation
@override
void matchNode(LayerContainer layerContainer, NodeProperties nodeProperties) {
String? caption = textKey!.getValue(nodeProperties.tags);
if (caption == null || caption.trim().isEmpty) {
return;
}
switch (textTransform) {
case TextTransform.uppercase:
caption = caption.toUpperCase();
break;
default:
break;
}
layerContainer.addLabel(RenderInfoNode(nodeProperties, this, caption: caption.trim()));
}