Skip to content

Commit 22bdccc

Browse files
authored
Merge pull request #125759 from scrooge1987/patch-1
Fix typos and improve explanation in "Show traffic on the map" article (Azure Maps)
2 parents d561714 + 2965898 commit 22bdccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-maps/map-show-traffic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ The [Traffic Overlay Options] tool lets you switch between the different traffic
5454

5555
## Add traffic controls
5656

57-
There are two different traffic controls that can be added to the map. The first control, `TrafficControl`, adds a toggle button that can be used to turn traffic on and off. Options for this control allow you to specify when traffic settings to use when show traffic. By default this control displays relative traffic flow and incident data, however, you could change this behavior and show absolute traffic flow and no incidents if desired. The second control, `TrafficLegendControl`, adds a traffic flow legend to the map that helps user understand what the color code road highlights mean. This control only appears on the map when traffic flow data is displayed on the map and is hidden at all other times.
57+
There are two different traffic controls that can be added to the map. The first control, `TrafficControl`, adds a toggle button that can be used to turn traffic on and off. The options in this control allow you to specify which parameters to use when displaying traffic. By default, this control displays relative traffic flow and incident data, but you can change this behavior to display absolute traffic flow and no incidents if desired. The second control, `TrafficLegendControl`, adds a traffic legend to the map to help the user understand what the color highlighted roads mean. This control appears on the map only when traffic flow data is displayed, and is hidden in all other cases.
5858

5959
The following code shows how to add the traffic controls to the map.
6060

6161
```JavaScript
62-
//Att the traffic control toggle button to the top right corner of the map.
62+
//Add the traffic control toggle button to the top right corner of the map.
6363
map.controls.add(new atlas.control.TrafficControl(), { position: 'top-right' });
6464

65-
//Att the traffic legend control to the bottom left corner of the map.
65+
//Add the traffic legend control to the bottom left corner of the map.
6666
map.controls.add(new atlas.control.TrafficLegendControl(), { position: 'bottom-left' });
6767
```
6868

0 commit comments

Comments
 (0)