Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TrafficOptions interface
- Package:
- azure-maps-control
The options for setting traffic on the map.
- Extends
Properties
| flow | The type of traffic flow to display: |
| incidents | Whether to display incidents on the map.
default |
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 false
incidents?: boolean
Property Value
boolean
