Traffic Composable
A composable that displays the traffic score and allows users to toggle the visibility of traffic on the map. The color of this control changes based on the traffic score, by default colors are:
green for low traffic
yellow for medium traffic
red for high traffic. For more details, see
TrafficControlStatus
.
Parameters
map
The map object to which traffic is applied.
colors
The colors to apply for the visual representation.