Skip to content

Commit 4274235

Browse files
committed
format
2 parents 3afbbd0 + 49be97c commit 4274235

35 files changed

+2514
-958
lines changed

articles/active-directory-b2c/tutorial-create-user-flows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ Next, specify that the application should be treated as a public client:
210210
1. In the left menu, under **Manage**, select **Authentication**.
211211
1. Under **Advanced settings**, in the **Allow public client flows** section, set **Enable the following mobile and desktop flows** to **Yes**.
212212
1. Select **Save**.
213-
1. Ensure that **"allowPublicClient": true** is set in the application manifest:
213+
1. Ensure that **"isFallbackPublicClient": true** is set in the application manifest:
214214
1. In the left menu, under **Manage**, select **Manifest** to open application manifest.
215-
1. Find **allowPublicClient** key and ensure its value is set to **true**.
215+
1. Find **isFallbackPublicClient** key and ensure its value is set to **true**.
216216

217217
Now, grant permissions to the API scope you exposed earlier in the *IdentityExperienceFramework* registration:
218218

articles/azure-maps/how-to-use-spatial-io-module.md

Lines changed: 59 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: How to use the Azure Maps spatial IO module
2+
title: How to Use the Azure Maps Spatial IO Module
33
titleSuffix: Microsoft Azure Maps
4-
description: Learn how to use the Spatial IO module provided by the Azure Maps Web SDK. This module provides robust features to make it easy for developers to integrate spatial data with the Azure Maps web SDK.
4+
description: Learn how to use the Azure Maps Spatial IO module to integrate spatial data with the Azure Maps Web SDK.
55
author: sinnypan
66
ms.author: sipa
77
ms.date: 02/28/2020
@@ -10,61 +10,68 @@ ms.service: azure-maps
1010
ms.subservice: web-sdk
1111
---
1212

13-
# How to use the Azure Maps Spatial IO module
13+
# Use the Azure Maps Spatial IO module
1414

15-
The Azure Maps Web SDK provides the [Spatial IO module], which integrates spatial data with the Azure Maps web SDK using JavaScript or TypeScript. The robust features in this module allow developers to:
15+
The Azure Maps [Spatial IO module] integrates spatial data with the Azure Maps Web SDK by using JavaScript or TypeScript. This guide demonstrates how to integrate and use the Spatial IO module in a web application.
1616

17-
- [Read and write spatial data]. Supported file formats include: KML, KMZ, GPX, GeoRSS, GML, GeoJSON and CSV files containing columns with spatial information. Also supports Well-Known Text (WKT).
18-
- Connect to Open Geospatial Consortium (OGC) services and integrate with Azure Maps web SDK, and overlay Web Map Services (WMS) and Web Map Tile Services (WMTS) as layers on the map. For more information, see [Add a map layer from the Open Geospatial Consortium (OGC)].
19-
- Query data in a Web Feature Service (WFS). For more information, see [Connect to a WFS service].
20-
- Overlay complex data sets that contain style information and have them render automatically. For more information, see [Add a simple data layer].
21-
- Leverage high-speed XML and delimited file reader and writer classes. For more information, see [Core IO operations].
17+
You can use the robust features in this module to:
2218

23-
This guide demonstrates how to integrate and use the Spatial IO module in a web application.
19+
- [Read and write spatial data]. You can use file formats that include:
20+
- Keyhole Markup Language (KML).
21+
- Compressed KML (KMZ).
22+
- GPS Exchange Format (GPX).
23+
- Geographic Really Simple Syndication (GeoRSS).
24+
- Geography Markup Language (GML).
25+
- Geographic JavaScript Object Notation (GeoJSON).
26+
- Well-Known Text (WKT).
27+
- Comma-Separated Values (CSV) when columns include spatial information.
28+
- Connect to Open Geospatial Consortium (OGC) services and integrate with the Azure Maps Web SDK. You can also overlay Web Map Services (WMS) and Web Map Tile Services (WMTS) as layers on the map. For more information, see [Add a map layer from the Open Geospatial Consortium (OGC)].
29+
- Query data in a Web Feature Service (WFS). For more information, see [Connect to a WFS service].
30+
- Overlay complex data sets that contain style information, which can render automatically. For more information, see [Add a simple data layer].
31+
- Use high-speed XML and delimited file reader and writer classes. For more information, see [Core IO operations].
2432

25-
This video provides an overview of Spatial IO module in the Azure Maps Web SDK.
33+
The following video provides an overview of the Spatial IO module in the Azure Maps Web SDK.
2634

2735
</br>
2836

2937
> [!VIDEO https://learn.microsoft.com/Shows/Internet-of-Things-Show/Easily-integrate-spatial-data-into-the-Azure-Maps/player?format=ny]
30-
3138
> [!WARNING]
32-
> Only use data and services that are from a source you trust, especially if referencing it from another domain. The spatial IO module does take steps to minimize risk, however the safest approach is too not allow any dangerous data into your application to begin with.
39+
> Use data and services only from a source that you trust, especially if the data is referenced from another domain. The Spatial IO module takes steps to minimize risk, but you should not allow any dangerous data into your application regardless.
3340
3441
## Prerequisites
3542

3643
- An [Azure Maps account]
3744
- A [subscription key]
3845

39-
## Installing the Spatial IO module
46+
## Install the Spatial IO module
4047

41-
You can load the Azure Maps spatial IO module using one of the two options:
48+
You can load the Azure Maps Spatial IO module by using one of the following two options:
4249

43-
- The globally hosted Azure CDN for the Azure Maps spatial IO module. For this option, you add a reference to the JavaScript in the `<head>` element of the HTML file.
50+
- The first option is to use the globally hosted Azure content delivery network for the Azure Maps Spatial IO module. Use the following script tag in the `<head>` element of the HTML file to add the reference:
4451

4552
```html
4653
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>
4754
```
4855

49-
- The source code for [azure-maps-spatial-io] can be loaded locally, and then hosted with your app. This package also includes TypeScript definitions. For this option, use the following command to install the package:
56+
- With the second option, you can load the source code for [azure-maps-spatial-io] locally, and host it with your app. This package also includes TypeScript definitions. Use the following command to install the package:
5057

5158
```sh
5259
npm install azure-maps-spatial-io
5360
```
5461

55-
Then, use an import declaration to add the module into a source file:
62+
Use an import declaration to add the module into a source file:
5663

5764
```js
5865
import * as spatial from "azure-maps-spatial-io";
5966
```
6067

6168
To learn more, see [How to use the Azure Maps map control npm package].
6269

63-
## Using the Spatial IO module
70+
## Implement the Spatial IO module
6471

6572
1. Create a new HTML file.
6673

67-
1. Load the Azure Maps Web SDK and initialize the map control. See the [Azure Maps map control] guide for the details. Once you're done with this step, your HTML file should look like this:
74+
1. Load the Azure Maps Web SDK and initialize the map control. See the [Azure Maps map control] guide for details. Your HTML file should look like this:
6875

6976
```html
7077
<!DOCTYPE html>
@@ -75,10 +82,10 @@ You can load the Azure Maps spatial IO module using one of the two options:
7582

7683
<meta charset="utf-8">
7784

78-
<!-- Ensures that Internet Explorer and Edge uses the latest version and doesn't emulate an older version -->
85+
<!-- Ensure that Internet Explorer and Edge use the latest version and don't emulate an older version. -->
7986
<meta http-equiv="x-ua-compatible" content="IE=Edge">
8087

81-
<!-- Ensures the web page looks good on all screen sizes. -->
88+
<!-- Ensure that the web page looks good on all screen sizes. -->
8289
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8390

8491
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
@@ -94,7 +101,7 @@ You can load the Azure Maps spatial IO module using one of the two options:
94101
map = new atlas.Map('myMap', {
95102
view: 'Auto',
96103
97-
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at https://azure.com/maps
104+
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at https://azure.com/maps.
98105
authOptions: {
99106
authType: 'subscriptionKey',
100107
subscriptionKey: '<Your Azure Maps Key>'
@@ -104,7 +111,7 @@ You can load the Azure Maps spatial IO module using one of the two options:
104111
//Wait until the map resources are ready.
105112
map.events.add('ready', function() {
106113
107-
// Write your code here to make sure it runs once the map resources are ready
114+
// Write your code here to make sure it runs once the map resources are ready.
108115
109116
});
110117
}
@@ -118,19 +125,22 @@ You can load the Azure Maps spatial IO module using one of the two options:
118125
</html>
119126
```
120127

121-
1. Load the Azure Maps spatial IO module. For this exercise, use the CDN for the Azure Maps spatial IO module. Add the following reference to the `<head>` element of your HTML file:
128+
1. Load the Azure Maps Spatial IO module and use the content delivery network for the Azure Maps Spatial IO module. Add the following reference to the `<head>` element of your HTML file:
122129

123130
```html
124131
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>
125132
```
126133

127-
1. Initialize a `datasource`, and add the data source to the map. Initialize a `layer`, and add the data source to the map layer. Then, render both the data source and the layer. Before you scroll down to see the full code in the next step, think about the best places to put the data source and layer code snippets. Recall that, before we programmatically manipulate the map, we should wait until the map resource are ready.
134+
1. Initialize a data source and add it to the map.
135+
1. Initialize a simple data layer and add the data source to it.
136+
1. Render the data layer.
137+
1. Before you scroll down to see the full code in the next step, determine the best places to put the data source and layer code snippets. Wait until the map resources are ready before you programmatically manipulate the map.
128138

129139
```javascript
130140
var datasource, layer;
131141
```
132142

133-
and
143+
Find the best places to put the code snippets.
134144

135145
```javascript
136146
//Create a data source and add it to the map.
@@ -142,7 +152,7 @@ You can load the Azure Maps spatial IO module using one of the two options:
142152
map.layers.add(layer);
143153
```
144154

145-
1. Your HTML code should now look like the following code. This sample demonstrates how to display an XML file's feature data on a map.
155+
1. Your HTML code should look like the following. The sample code shows you how to display an XML file's feature data on a map.
146156

147157
> [!NOTE]
148158
> This example uses [Route66Attractions.xml].
@@ -155,13 +165,13 @@ You can load the Azure Maps spatial IO module using one of the two options:
155165

156166
<meta charset="utf-8">
157167

158-
<!-- Ensures that Internet Explorer and Edge uses the latest version and doesn't emulate an older version -->
168+
<!-- Ensure that Internet Explorer and Edge use the latest version and don't emulate an older version. -->
159169
<meta http-equiv="x-ua-compatible" content="IE=Edge">
160170

161-
<!-- Ensures the web page looks good on all screen sizes. -->
171+
<!-- Ensure that the web page looks good on all screen sizes. -->
162172
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
163173

164-
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
174+
<!-- Add references to the Azure Maps map control JavaScript and CSS files. -->
165175
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
166176
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.js"></script>
167177

@@ -176,7 +186,7 @@ You can load the Azure Maps spatial IO module using one of the two options:
176186
map = new atlas.Map('myMap', {
177187
view: 'Auto',
178188
179-
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at https://azure.com/maps
189+
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at https://azure.com/maps.
180190
authOptions: {
181191
authType: 'subscriptionKey',
182192
subscriptionKey: '<Your Azure Maps Key>'
@@ -219,50 +229,35 @@ You can load the Azure Maps spatial IO module using one of the two options:
219229
</html>
220230
```
221231

222-
1. Remember to replace `<Your Azure Maps Key>` with your subscription key. You should see results similar to the following image in your HTML file:
232+
1. Remember to replace `<Your Azure Maps Key>` with your subscription key. Your HTML file should include an image that looks like this:
223233

224234
:::image type="content" source="./media/how-to-use-spatial-io-module/spatial-data-example.png" lightbox="./media/how-to-use-spatial-io-module/spatial-data-example.png" alt-text="Screenshot showing the Spatial Data sample in a map.":::
225235

226-
## Next steps
227-
228-
The feature we demonstrated is only one of the many features available in the Spatial IO module. Read the following guides to learn how to use other functionalities in the Spatial IO module:
229-
230-
> [!div class="nextstepaction"]
231-
> [Add a simple data layer]
232-
233-
> [!div class="nextstepaction"]
234-
> [Read and write spatial data]
235-
236-
> [!div class="nextstepaction"]
237-
> [Add an OGC map layer]
238-
239-
> [!div class="nextstepaction"]
240-
> [Connect to a WFS service]
241-
242-
> [!div class="nextstepaction"]
243-
> [Leverage core operations]
236+
## Related content
244237

245-
> [!div class="nextstepaction"]
246-
> [Supported data format details]
238+
This article describes only one of the many features available in the Spatial IO module. To learn about others, read the following guides:
247239

248-
Refer to the Azure Maps Spatial IO documentation:
240+
- [Add a simple data layer]
241+
- [Read and write spatial data]
242+
- [Add a map layer from the Open Geospatial Consortium (OGC)]
243+
- [Connect to a WFS service]
244+
- [Core IO operations]
245+
- [Supported data format details]
246+
- [Get documentation for the Azure Maps Spatial IO package]
249247

250-
> [!div class="nextstepaction"]
251-
> [Azure Maps Spatial IO package]
252-
253-
[Add a map layer from the Open Geospatial Consortium (OGC)]: spatial-io-add-ogc-map-layer.md
254248
[Add a simple data layer]: spatial-io-add-simple-data-layer.md
255-
[Add an OGC map layer]: spatial-io-add-ogc-map-layer.md
249+
[Read and write spatial data]: spatial-io-read-write-spatial-data.md
250+
[Add a map layer from the Open Geospatial Consortium]: spatial-io-add-ogc-map-layer.md
251+
[Connect to a WFS service]: spatial-io-connect-wfs-service.md
252+
[Use core operations]: spatial-io-core-operations.md
253+
[Supported data format details]: spatial-io-supported-data-format-details.md
254+
[Get documentation for the Azure Maps Spatial IO package]: /javascript/api/azure-maps-spatial-io
255+
[Add a map layer from the Open Geospatial Consortium (OGC)]: spatial-io-add-ogc-map-layer.md
256256
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
257257
[Azure Maps map control]: how-to-use-map-control.md
258-
[Azure Maps Spatial IO package]: /javascript/api/azure-maps-spatial-io
259258
[azure-maps-spatial-io]: https://www.npmjs.com/package/azure-maps-spatial-io
260-
[Connect to a WFS service]: spatial-io-connect-wfs-service.md
261259
[Core IO operations]: spatial-io-core-operations.md
262260
[How to use the Azure Maps map control npm package]: how-to-use-npm-package.md
263-
[Leverage core operations]: spatial-io-core-operations.md
264-
[Read and write spatial data]: spatial-io-read-write-spatial-data.md
265261
[Route66Attractions.xml]: https://samples.azuremaps.com/data/Gpx/Route66Attractions.xml
266262
[Spatial IO module]: https://www.npmjs.com/package/azure-maps-spatial-io
267263
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
268-
[Supported data format details]: spatial-io-supported-data-format-details.md

0 commit comments

Comments
 (0)