TrafficControlOptions interface

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 `"relative"``
incidents

Whether to display incidents on the map. default true

isActive

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

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 `"relative"``
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

Property Value