filterTrafficIncidents static method

void filterTrafficIncidents(
  1. List<TrafficIncidentType> trafficIncidents
)

Filters the displayed traffic incidents so that only the ones applicable to the specified criteria are shown when general display of traffic incidents is enabled.

The display of traffic incidents can be enabled using MapScene.enableFeatures with MapFeatures.trafficIncidents.

  • trafficIncidents The traffic incidents to filter for, so that only applicable incidents are displayed. When the list is empty, then all traffic incidents will be displayed. If the MapContentSettings.filterTrafficIncidents.trafficIncidents contains TrafficIncidentType.unknown, then the traffic filter will be applied ignoring this element.

Implementation

static void filterTrafficIncidents(List<TrafficIncidentType> trafficIncidents) => $prototype.filterTrafficIncidents(trafficIncidents);