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/android-sdk-migration-guide.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
20
20
* An [Azure Maps account].
21
21
* A [subscription key] or Microsoft Entra credentials. For more information, see [authentication options].
22
22
23
-
### 1. Create a WebView
23
+
## Create a WebView
24
24
25
25
If your Android application doesn't already have a WebView, you need to add one. You can do so by adding the WebView element to your layout XML or programmatically in your Java code. Make sure to set up the WebView to occupy the desired area of your layout.
26
26
@@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
76
76
}
77
77
```
78
78
79
-
### 2. Set up a map with Azure Maps Web SDK
79
+
## Set up a map with Azure Maps Web SDK
80
80
81
81
In your HTML file, initialize a map with your subscription key. Replace `<YOUR_SUBSCRIPTION_KEY>` with your actual key.
82
82
@@ -138,15 +138,15 @@ Save and run the app. A map should be shown within a WebView. Add any features o
138
138
139
139
:::image type="content" source="./media/android-sdk-migration-guide/maps-android.png" alt-text="A screenshot of a map in a WebView.":::
140
140
141
-
### 3. Communication between native code and WebView (optional)
141
+
## Communication between native code and WebView (optional)
142
142
143
143
To enable communication between your Android application and the WebView, you can use the WebView's `addJavascriptInterface` method to expose a Java object to the JavaScript running in the WebView. It allows you to call Java methods from your JavaScript code. For more information, see the [Android WebView documentation].
144
144
145
-
### 4. Clean Up Native Map Implementation
145
+
## Clean Up Native Map Implementation
146
146
147
147
Remove the code related to the native Azure Maps Android SDK from your project. This includes dependencies and initialization code related to `com.azure.android:azure-maps-control`.
148
148
149
-
### 5. Testing
149
+
## Testing
150
150
151
151
Test your application thoroughly to ensure that the migration has been successful. Check for any issues related to map functionality, user interactions, and performance.
Copy file name to clipboardExpand all lines: articles/azure-maps/ios-sdk-migration-guide.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
20
20
* An [Azure Maps account].
21
21
* A [subscription key] or Microsoft Entra credentials. For more information, see [authentication options].
22
22
23
-
### 1. Create a WebView
23
+
## Create a WebView
24
24
25
25
If your iOS application doesn't already have a WebView, you need to add one. You can do so by adding a WKWebView to your storyboard or programmatically in your Swift code. Make sure to set up the WKWebView to occupy the desired area of your view.
26
26
@@ -59,7 +59,7 @@ class ViewController: UIViewController, WKNavigationDelegate {
59
59
}
60
60
```
61
61
62
-
### 2. Set up a map with Azure Maps Web SDK
62
+
## Set up a map with Azure Maps Web SDK
63
63
64
64
In your HTML file, initialize a map with your subscription key. Replace `<YOUR_SUBSCRIPTION_KEY>` with your actual key.
65
65
@@ -121,15 +121,15 @@ Save and run the app. A map should be shown within a WebView. Add any features o
121
121
122
122
:::image type="content" source="./media/ios-sdk-migration-guide/maps-ios.png" alt-text="A screenshot of a map in a WebView.":::
123
123
124
-
### 3. Communication between native code and WebView (optional)
124
+
## Communication between native code and WebView (optional)
125
125
126
126
To enable communication between your iOS application and the WebView, you can use the `WKScriptMessageHandler` protocol provided by the `WKWebView` class. It allows you to establish a bridge for communication between JavaScript running in the WebView and your Swift code. For more information, see the [iOS webkit documentation].
127
127
128
-
### 4. Clean Up Native Map Implementation
128
+
## Clean Up Native Map Implementation
129
129
130
130
Remove the code related to the native Azure Maps iOS SDK from your project. This includes dependencies and initialization code related to `azure-maps-ios-sdk-distribution`.
131
131
132
-
### 5. Testing
132
+
## Testing
133
133
134
134
Test your application thoroughly to ensure that the migration has been successful. Check for any issues related to map functionality, user interactions, and performance.
0 commit comments