Skip to content

Commit c60b4fa

Browse files
author
farah-alyasari
committed
fixed order
1 parent 7188e4d commit c60b4fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/azure-maps/how-to-show-traffic-android.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,15 @@ public class MainActivity extends AppCompatActivity {
196196

197197
## Flow traffic data
198198

199-
Use the following code snippet to set traffic flow data. Similar to the code in the previous section, we pass the return value of the `flow` method to the `setTraffic` method. There are four values that can be passed to `flow`, and each value would trigger `flow` to return the respective value. The return value of `flow` will then be passed as the argument to `setTraffic`. See the table below for these four values:
200-
201-
202199
You'll first need to import the following libraries to call `setTraffic` and `flow`:
203200
204201
```java
205202
import com.microsoft.azure.maps.mapcontrol.options.TrafficFlow;
206203
import static com.microsoft.com.azure.maps.mapcontrol.options.TrafficOptions.flow;
207204
```
208205
206+
Use the following code snippet to set traffic flow data. Similar to the code in the previous section, we pass the return value of the `flow` method to the `setTraffic` method. There are four values that can be passed to `flow`, and each value would trigger `flow` to return the respective value. The return value of `flow` will then be passed as the argument to `setTraffic`. See the table below for these four values:
207+
209208
| | |
210209
| :-- | :-- |
211210
| TrafficFlow.NONE | Doesn't display traffic data on the map |

0 commit comments

Comments
 (0)