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-services-module.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
@@ -18,13 +18,13 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
18
18
19
19
1. Create a new HTML file.
20
20
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:
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:
28
28
29
29
> **npm install azure-maps-rest**
30
30
@@ -58,7 +58,7 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
58
58
59
59
```javascript
60
60
// Enter your Azure AD client ID.
61
-
var clientId = "<YourAzureActiveDirectoryclientID>";
61
+
var clientId = "<YourAzureActiveDirectoryClientId>";
62
62
63
63
// Use TokenCredential with OAuth token (Azure AD or Anonymous).
64
64
var aadToken = await getAadToken();
@@ -177,7 +177,7 @@ Learn more about the classes and methods used in this article:
Copy file name to clipboardExpand all lines: articles/azure-maps/supported-browsers.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,43 +12,43 @@ manager: cpendleton
12
12
13
13
# Web SDK supported browsers
14
14
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:
16
16
17
17
```
18
18
if(!atlas.isSupported()) {
19
19
alert('Your browser is not supported by Azure Maps');
20
20
} else if(!atlas.isSupported(true)) {
21
21
alert('Your browser is supported by Azure Maps, but may have major performance caveats.');
22
22
} else {
23
-
//Your browser is supported. Add your map code here.
23
+
//Your browser is supported. Add your map code here.
24
24
}
25
25
```
26
26
27
27
## Desktop
28
28
29
-
The Azure Maps Web SDK supports the following desktop browsers.
29
+
The Azure Maps Web SDK supports the following desktop browsers:
30
30
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)
35
35
36
-
See also [Target legacy browsers](#Target-Legacy-Browsers).
36
+
See also [Target legacy browsers](#Target-Legacy-Browsers) later in this article.
37
37
38
38
## Mobile
39
39
40
-
The Azure Maps Web SDK supports the following mobile browsers.
40
+
The Azure Maps Web SDK supports the following mobile browsers:
41
41
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
45
45
- 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
49
49
50
50
> [!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.
52
52
53
53
## Node.js
54
54
@@ -58,7 +58,7 @@ The following Web SDK modules are also supported in Node.js:
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:
0 commit comments