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
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
22
22
23
23
## Create a WebView
24
24
25
-
Add a `WebView` if your Android application doesn't have one. Do so by adding the `WebView` element to your layout XML or programmatically in your Java code. Be sure it's configured to occupy the desired area of your layout.
25
+
Add a WebView if your Android application doesn't have one. Do so by adding the `WebView` element to your layout XML or programmatically in your Java code. Be sure it's configured to occupy the desired area of your layout.
26
26
27
27
```xml
28
28
<?xml version="1.0" encoding="utf-8"?>
@@ -41,13 +41,13 @@ Add a `WebView` if your Android application doesn't have one. Do so by adding th
In your activity or fragment, initialize the WebView and enable JavaScript by updating the settings. Load the HTML file that contains the Web SDK code. You can either load it from the assets folder or from a remote URL.
50
+
In your activity or fragment, initialize the `WebView` and enable JavaScript by updating the settings. Load the HTML file that contains the Web SDK code. You can either load it from the assets folder or from a remote URL.
51
51
52
52
```java
53
53
importandroid.os.Bundle;
@@ -134,13 +134,13 @@ In your HTML file, initialize a map with your subscription key. Replace `<YOUR_S
134
134
</html>
135
135
```
136
136
137
-
Save and run the app. A map should be shown within a WebView. Add any features or functionalities that you want to use from the Web SDK. You can refer to the [Azure Maps documentation] and the [Azure Maps Code Samples website] for more use cases.
137
+
Save and run the app. A map will appear within a WebView. Add any required features or functionality from the Web SDK. For more information, see [Azure Maps Documentation] and [Azure Maps Samples].
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
141
## Communication between native code and WebView (optional)
142
142
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].
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 [WebView] in the Android documentation.
144
144
145
145
## Clean Up Native Map Implementation
146
146
@@ -160,9 +160,7 @@ Learn how to add maps to web and mobile applications using the Map Control clien
Copy file name to clipboardExpand all lines: articles/azure-maps/ios-sdk-migration-guide.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
22
22
23
23
## Create a WebView
24
24
25
-
Add a `WebView` if your iOS application doesn't have one. Do so by adding the `WKWebView` to your storyboard or programmatically in your Swift code. Be sure it's configured to occupy the desired area of your layout.
25
+
Add a WebView if your iOS application doesn't have one. Do so by adding the `WKWebView` to your storyboard or programmatically in your Swift code. Be sure it's configured to occupy the desired area of your layout.
26
26
27
27
```swift
28
28
importUIKit
@@ -117,7 +117,7 @@ In your HTML file, initialize a map with your subscription key. Replace `<YOUR_S
117
117
</html>
118
118
```
119
119
120
-
Save and run the app. A map should be shown within a WebView. Add any features or functionalities that you want to use from the Web SDK. You can refer to the [Azure Maps documentation] and the [Azure Maps Code Samples website] for more use cases.
120
+
Save and run the app. A map should be shown within a WebView. Add any features or functionalities that you want to use from the Web SDK. You can refer to the [Azure Maps Documentation] and the [Azure Maps Samples] for more use cases.
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
@@ -143,8 +143,8 @@ Learn how to add maps to web and mobile applications using the Map Control clien
0 commit comments