TrafficControlOptions interface
- Extends
Properties
flow | The type of traffic flow to display: |
incidents | Whether to display incidents on the map.
default |
is |
Specifies if the control is in the active state (displaying traffic). Default: false |
style | The style of the control. Can be; light, dark, auto, or any CSS3 color. When set to auto, the style will change based on the map style. Default `light'. |
Property Details
flow
Warning
This API is now deprecated.
"absolute"
is the absolute speed of the road
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
flow?: "none" | "relative" | "absolute" | "relative-delay"
Property Value
"none" | "relative" | "absolute" | "relative-delay"
incidents
Whether to display incidents on the map.
default true
incidents?: boolean
Property Value
boolean
isActive
Specifies if the control is in the active state (displaying traffic). Default: false
isActive?: boolean
Property Value
boolean
style
The style of the control. Can be; light, dark, auto, or any CSS3 color. When set to auto, the style will change based on the map style. Default `light'.
style?: ControlStyle