TrafficOptions Object

Bing
 

The following is a list of properties that are available in the TrafficOptions object.

NameTypeDescription
flowVisiblebooleanDisplays the traffic flow layer.
incidentsVisiblebooleanDisplays all traffic incidents.
legendVisiblebooleanDisplays the traffic legend.
opacitynumberSets the opacity of the traffic flow tile layer. Must be a number between 0 and 1. The default is 1 unless the map mode is set to lite, in which case the default is set to 0.7.
Show: