provideStyle method

  1. @override
bool provideStyle(
  1. RoadEventsLayerRoadEventStylingProperties roadEventStylingProperties,
  2. bool isNightMode,
  3. double scaleFactor,
  4. RoadEventsLayerRoadEventStyle style,
)
override

Provide style for given road event. Must produce same style for same input arguments.

scaleFactor Scale factor of a map window displaying this road event. Road event icon image scale factor must match this value.

Return false if road event must not be displayed at all.

Implementation

@override
bool provideStyle(
        RoadEventsLayerRoadEventStylingProperties roadEventStylingProperties,
        bool isNightMode,
        double scaleFactor,
        RoadEventsLayerRoadEventStyle style) =>
    _defaultStyleProvider.provideStyle(roadEventStylingProperties, style,
        isNightMode: isNightMode, scaleFactor: scaleFactor);