Skip to content

Commit f4e2317

Browse files
authored
Merge pull request #103493 from brunck/patch-1
Fix code example errors
2 parents 20ff6e9 + 9a9c618 commit f4e2317

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-maps/how-to-use-ios-map-control-library.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ The Azure Maps iOS SDK provides three ways of setting the language and regional
4141

4242
```swift
4343
MapControl(options: [
44-
StyleOptions.language("fr-FR"),
45-
StyleOptions.view("Auto")
44+
StyleOption.language("fr-FR"),
45+
StyleOption.view("Auto")
4646
])
4747
```
4848

4949
1. The final way of programmatically setting the language and regional view properties uses the maps `setStyle` method. Do this any time you need to change the language and regional view of the map.
5050

5151
```swift
5252
mapControl.getMapAsync { map in
53-
map.setStyle([
54-
StyleOptions.language("fr-FR"),
55-
StyleOptions.view("Auto")
53+
map.setStyleOptions([
54+
StyleOption.language("fr-FR"),
55+
StyleOption.view("Auto")
5656
])
5757
}
5858
```

0 commit comments

Comments
 (0)