TrafficLayer
fun TrafficLayer(visible: Boolean = true, style: String? = null, onTrafficChanged: (TrafficLevel?) -> Unit? = null, onTrafficLoading: () -> Unit? = null, onTrafficExpired: () -> Unit? = null)
Shows the traffic layer for as long as this composable stays in the composition.
Parameters
style
JSON style transformations applied to the layer.
onTrafficChanged
Called with the current traffic level, or null while it is unknown.