Skip to content

Commit bb7f05d

Browse files
author
farah-alyasari
committed
wrapped map -> subcode with {}, for flow
1 parent e3033af commit bb7f05d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
3333
super.onCreate(savedInstanceState);
3434
mapControl.getMapAsync(map - > {
3535
map.setTraffic(incidents(true));
36-
}
36+
}
3737
}
3838
```
3939

@@ -58,8 +58,9 @@ Use the following code snippet to set traffic flow data. Similar to the code in
5858
```java
5959
protected void onCreate(Bundle savedInstanceState) {
6060
super.onCreate(savedInstanceState);
61-
mapControl.getMapAsync(map ->
61+
mapControl.getMapAsync(map -> {
6262
map.setTraffic(flow(TrafficFlow.RELATIVE)));
63+
}
6364
}
6465
```
6566

0 commit comments

Comments
 (0)