matchWay method

  1. @override
void matchWay(
  1. LayerContainer layerContainer,
  2. WayProperties wayProperties
)
override

Checks the wayProperties and adds itself to the layerContainer if there is something to draw.

Implementation

@override
void matchWay(LayerContainer layerContainer, WayProperties wayProperties) {
  if (bitmapSrc == null) return;

  if (wayProperties.getCoordinatesAbsolute().isEmpty) return;

  layerContainer.add(level, RenderInfoWay(wayProperties, this));
}