Skip to content

Commit c13f75c

Browse files
committed
minor updates.
1 parent d7e048f commit c13f75c

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

articles/azure-maps/android-sdk-migration-guide.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
2222

2323
## Create a WebView
2424

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.
2626

2727
```xml
2828
<?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
4141
</androidx.coordinatorlayout.widget.CoordinatorLayout>
4242
```
4343

44-
Enable internet access by adding permissions in AndroidManifest.xml.
44+
Enable internet access by adding permissions in _AndroidManifest.xml_.
4545

4646
```xml
4747
<uses-permission android:name="android.permission.INTERNET" />
4848
```
4949

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.
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.
5151

5252
```java
5353
import android.os.Bundle;
@@ -134,13 +134,13 @@ In your HTML file, initialize a map with your subscription key. Replace `<YOUR_S
134134
</html>
135135
```
136136

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].
138138

139139
:::image type="content" source="./media/android-sdk-migration-guide/maps-android.png" alt-text="A screenshot of a map in a WebView.":::
140140

141141
## Communication between native code and WebView (optional)
142142

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.
144144

145145
## Clean Up Native Map Implementation
146146

@@ -160,9 +160,7 @@ Learn how to add maps to web and mobile applications using the Map Control clien
160160
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
161161
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
162162
[authentication options]: /javascript/api/azure-maps-control/atlas.authenticationoptions
163-
[Azure Maps documentation]: how-to-use-map-control.md
164-
[Azure Maps Code Samples website]: https://samples.azuremaps.com/
165-
[Android WebView documentation]: https://developer.android.com/reference/android/webkit/WebView
163+
[Azure Maps Documentation]: how-to-use-map-control.md
164+
[Azure Maps Samples]: https://samples.azuremaps.com/
165+
[WebView]: https://developer.android.com/reference/android/webkit/WebView
166166
[Use the Azure Maps map control]: how-to-use-map-control.md
167-
168-

articles/azure-maps/ios-sdk-migration-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use the Map Control in a web page, you must have one of the following prerequ
2222

2323
## Create a WebView
2424

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.
2626

2727
```swift
2828
import UIKit
@@ -117,7 +117,7 @@ In your HTML file, initialize a map with your subscription key. Replace `<YOUR_S
117117
</html>
118118
```
119119

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.
121121

122122
:::image type="content" source="./media/ios-sdk-migration-guide/maps-ios.png" alt-text="A screenshot of a map in a WebView.":::
123123

@@ -143,8 +143,8 @@ Learn how to add maps to web and mobile applications using the Map Control clien
143143
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
144144
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
145145
[authentication options]: /javascript/api/azure-maps-control/atlas.authenticationoptions
146-
[Azure Maps documentation]: how-to-use-map-control.md
147-
[Azure Maps Code Samples website]: https://samples.azuremaps.com/
146+
[Azure Maps Documentation]: how-to-use-map-control.md
147+
[Azure Maps Samples]: https://samples.azuremaps.com/
148148
[WKScriptMessageHandler]: https://developer.apple.com/documentation/webkit/wkscriptmessagehandler
149149
[Use the Azure Maps map control]: how-to-use-map-control.md
150150

0 commit comments

Comments
 (0)