You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-ios-map-control-library.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
-
title: Get started with iOS map control | Microsoft Azure Maps
2
+
title: Get started with iOS map control
3
+
titleSuffix: Microsoft Azure Maps
3
4
description: Become familiar with the Azure Maps iOS SDK. See how to install the SDK and create an interactive map.
4
5
author: dubiety
5
6
ms.author: yuchungchen
@@ -15,13 +16,13 @@ The Azure Maps iOS SDK is a vector map library for iOS. This article guides you
15
16
16
17
## Prerequisites
17
18
18
-
Be sure to complete the steps in the [Quickstart: Create an iOS app](quick-ios-app.md) article.
19
+
Be sure to complete the steps in the [Quickstart: Create an iOS app] article.
19
20
20
21
## Localizing the map
21
22
22
-
The Azure Maps iOS SDK provides three ways of setting the language and regional view of the map. The following code demonstrates the different ways of setting the *language* to French ("fr-FR") and the *regional view* to "Auto".
23
+
The Azure Maps iOS SDK provides three ways of setting the language and regional view of the map. The following code demonstrates the different ways of setting the *language* to French (fr-FR) and the *regional view* to `Auto`.
23
24
24
-
1.Pass the language and regional view information into the `AzureMaps` class using the static `language` and `view` properties. This sets the default language and regional view properties in your app.
25
+
1.Set the default language and regional view properties in your app by passing the language and regional view information into the `AzureMaps` class using the static `language` and `view` properties.
25
26
26
27
```swift
27
28
// Alternatively use Azure Active Directory authenticate.
@@ -46,7 +47,7 @@ The Azure Maps iOS SDK provides three ways of setting the language and regional
46
47
])
47
48
```
48
49
49
-
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.
50
+
1. The final way of programmatically setting the language and regional view properties uses the maps `setStyle` method. Use the maps `setStyle` method anytime you need to change the language and regional view of the map.
50
51
51
52
```swift
52
53
mapControl.getMapAsync { map in
@@ -57,11 +58,11 @@ The Azure Maps iOS SDK provides three ways of setting the language and regional
57
58
}
58
59
```
59
60
60
-
Hereisan example of an Azure Maps application with the language set to "fr-FR" and regional view set to "Auto".
61
+
Here's an example of an Azure Maps application with the language set to `fr-FR` and regional view set to `Auto`.
61
62
62
63
:::image type="content" source="media/ios-sdk/how-to-use-ios-map-control-library/fr-borderless.png" alt-text="A map image showing labels in French.":::
63
64
64
-
For a complete list of supported languages and regional views, see [Localization support in Azure Maps](supported-languages.md).
65
+
For a complete list of supported languages and regional views, see [Localization support in Azure Maps].
65
66
66
67
## Navigating the map
67
68
@@ -90,18 +91,21 @@ This section details the various ways to navigate when in an Azure Maps program.
90
91
91
92
The Azure Maps iOS SDK supports using the Azure Government cloud. You specify using the Azure Maps government cloud domain by adding the following line of code where the Azure Maps authentication details are specified:
92
93
93
-
```
94
+
```swift
94
95
AzureMaps.domain="atlas.azure.us"
95
96
```
96
97
97
98
Be sure to use Azure Maps authentication details from the Azure Government cloud platform when authenticating the map and services.
98
99
99
100
## Additional information
100
101
101
-
See the following articles for additional code examples:
102
+
See the following articles for more code examples:
102
103
103
104
*[Quickstart: Create an iOS app](quick-ios-app.md)
104
105
*[Change map styles in iOS maps](set-map-style-ios-sdk.md)
105
106
*[Add a symbol layer](add-symbol-layer-ios.md)
106
107
*[Add a line layer](add-line-layer-map-ios.md)
107
108
*[Add a polygon layer](add-polygon-layer-map-ios.md)
109
+
110
+
[Quickstart: Create an iOS app]: quick-ios-app.md
111
+
[Localization support in Azure Maps]: supported-languages.md
0 commit comments