Skip to content

Commit 540811a

Browse files
committed
edit pass: azure-maps-new-articles-batch
1 parent d3b95cc commit 540811a

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

articles/azure-maps/how-to-use-services-module.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
1818

1919
1. Create a new HTML file.
2020
1. Load the Azure Maps services module. You can load it in one of two ways:
21-
1. Use the globally hosted, Azure Content Delivery Network version of the Azure Maps services module. Add a script reference to the `<head>` element of the file:
21+
- Use the globally hosted, Azure Content Delivery Network version of the Azure Maps services module. Add a script reference to the `<head>` element of the file:
2222

2323
```html
2424
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas-service.min.js"></script>
2525
```
2626

27-
1. Alternatively, load the Azure Maps Web SDK source code locally by using the [azure-maps-rest](https://www.npmjs.com/package/azure-maps-rest) npm package, and then host it with your app. This package also includes TypeScript definitions. Use this command:
27+
- Alternatively, load the Azure Maps Web SDK source code locally by using the [azure-maps-rest](https://www.npmjs.com/package/azure-maps-rest) npm package, and then host it with your app. This package also includes TypeScript definitions. Use this command:
2828

2929
> **npm install azure-maps-rest**
3030

@@ -58,7 +58,7 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
5858

5959
```javascript
6060
// Enter your Azure AD client ID.
61-
var clientId = "<Your Azure Active Directory client ID>";
61+
var clientId = "<Your Azure Active Directory Client Id>";
6262

6363
// Use TokenCredential with OAuth token (Azure AD or Anonymous).
6464
var aadToken = await getAadToken();
@@ -177,7 +177,7 @@ Learn more about the classes and methods used in this article:
177177
> [!div class="nextstepaction"]
178178
> [TokenCredential](https://docs.microsoft.com/javascript/api/azure-maps-rest/atlas.service.tokencredential?view=azure-iot-typescript-latest)
179179
180-
See the following articles for more code samples that use the services module:
180+
For more code samples that use the services module, see these articles:
181181
182182
> [!div class="nextstepaction"]
183183
> [Show search results on the map](./map-search-location.md)

articles/azure-maps/supported-browsers.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,43 @@ manager: cpendleton
1212

1313
# Web SDK supported browsers
1414

15-
The Azure Maps Web SDK provides a helper function [atlas.isSupported](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas?view=azure-iot-typescript-latest#issupported-boolean-) to detect if a web browser has the minimum required WebGL features to support loading and rendering the map control.
15+
The Azure Maps Web SDK provides a helper function called [atlas.isSupported](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas?view=azure-iot-typescript-latest#issupported-boolean-). This function detects whether a web browser has the minimum set of WebGL features required to support loading and rendering the map control. Here's an example of how to use the function:
1616

1717
```
1818
if(!atlas.isSupported()) {
1919
alert('Your browser is not supported by Azure Maps');
2020
} else if(!atlas.isSupported(true)) {
2121
alert('Your browser is supported by Azure Maps, but may have major performance caveats.');
2222
} else {
23-
//Your browser is supported. Add your map code here.
23+
// Your browser is supported. Add your map code here.
2424
}
2525
```
2626

2727
## Desktop
2828

29-
The Azure Maps Web SDK supports the following desktop browsers.
29+
The Azure Maps Web SDK supports the following desktop browsers:
3030

31-
- The current and previous version of Microsoft Edge
32-
- The current and previous version of Chrome
33-
- The current and previous version of Firefox
34-
- The current and previous version of Safari (Mac OS X)
31+
- Microsoft Edge (current and previous version)
32+
- Google Chrome (current and previous version)
33+
- Mozilla Firefox (current and previous version)
34+
- Apple Safari (Mac OS X) (current and previous version)
3535

36-
See also [Target legacy browsers](#Target-Legacy-Browsers).
36+
See also [Target legacy browsers](#Target-Legacy-Browsers) later in this article.
3737

3838
## Mobile
3939

40-
The Azure Maps Web SDK supports the following mobile browsers.
40+
The Azure Maps Web SDK supports the following mobile browsers:
4141

42-
- Android
43-
* Current version of Chrome on Android 6.0+
44-
* Chrome WebView on Android 6.0+
42+
- Android
43+
- Current version of Chrome on Android 6.0 and later
44+
- Chrome WebView on Android 6.0 and later
4545
- iOS
46-
* Mobile Safari on the current and previous major version of iOS
47-
* UIWebView and WKWebView on the current and previous major version of iOS
48-
* Current version of Chrome for iOS
46+
- Mobile Safari on the current and previous major version of iOS
47+
- UIWebView and WKWebView on the current and previous major version of iOS
48+
- Current version of Chrome for iOS
4949

5050
> [!TIP]
51-
> If you are embedding a map inside a mobile application using a WebView control, you may prefer using the [npm package of the Azure Maps Web SDK](https://www.npmjs.com/package/azure-maps-control) instead of referencing the CDN hosted version of the SDK. This will reduce loading time as the SDK will already be on the user's device and not need to be downloaded at runtime.
51+
> If you're embedding a map inside a mobile application by using a WebView control, you might prefer to use the [npm package of the Azure Maps Web SDK](https://www.npmjs.com/package/azure-maps-control) instead of referencing the version of the SDK that's hosted on Azure Content Delivery Network. This approach reduces loading time because the SDK is already be on the user's device and doesn't need to be downloaded at run time.
5252
5353
## Node.js
5454

@@ -58,7 +58,7 @@ The following Web SDK modules are also supported in Node.js:
5858

5959
## <a name="Target-Legacy-Browsers"></a>Target legacy browsers
6060

61-
If you need to target older browsers that may not support or have limited support for WebGL, it is recommended to use the Azure Maps Services in combination with an open-source map control such as [leaflet](https://leafletjs.com/).
61+
You might want to target older browsers that don't support WebGL or that have only limited support for it. In such cases, we recommend that you use Azure Maps services together with an open-source map control like [Leaflet](https://leafletjs.com/). Here's an example:
6262

6363

6464
<iframe height="500" style="width: 100%;" scrolling="no" title="Azure Maps + Leaflet" src="//codepen.io/azuremaps/embed/GeLgyx/?height=500&theme-id=0&default-tab=html,result" frameborder="no" allowtransparency="true" allowfullscreen="true">

0 commit comments

Comments
 (0)