filterTrafficIncidents method - MapContentSettings class - mapview library - Dart API
filterTrafficIncidents
filterTrafficIncidents static method
- 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.
trafficIncidentsThe 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 theMapContentSettings.filterTrafficIncidents.trafficIncidentscontains TrafficIncidentType.unknown, then the traffic filter will be applied ignoring this element.
Implementation
static void filterTrafficIncidents(List<TrafficIncidentType> trafficIncidents) => $prototype.filterTrafficIncidents(trafficIncidents);