TrafficOptions interface
The options for setting traffic on the map.
- Extends
Properties
flow | The type of traffic flow to display: "none" is to display no traffic flow data "relative" is the speed of the road relative to free-flow @deprecated "absolute" is the absolute speed of the road @deprecated "relative-delay" displays relative speed only where they differ from free-flow; false to stop displaying the traffic flow. default `"none"`` |
incidents | Whether to display incidents on the map.
default |
Property Details
flow
The type of traffic flow to display:
"none" is to display no traffic flow data
"relative" is the speed of the road relative to free-flow
@deprecated "absolute" is the absolute speed of the road
@deprecated "relative-delay" displays relative speed only where they differ from free-flow; false to stop displaying the traffic flow.
default `"none"``flow?: "none" | "relative" | "absolute" | "relative-delay"
Property Value
"none" | "relative" | "absolute" | "relative-delay"
incidents
Whether to display incidents on the map.
default false
incidents?: boolean
Property Value
boolean