Skip to content

Commit 8a01625

Browse files
committed
articles-about-the-spatial-io-module
1 parent 8b14a78 commit 8a01625

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following video provides an overview of the Spatial IO module in the Azure M
4747

4848
You can load the Azure Maps Spatial IO module by using one of the following two options:
4949

50-
- You can use the globally hosted Azure content delivery network for the Azure Maps Spatial IO module. For this option, 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:
5151

5252
```html
5353
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>
@@ -131,7 +131,9 @@ You can load the Azure Maps Spatial IO module by using one of the following two
131131
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>
132132
```
133133

134-
1. Initialize a data source, 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.
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.
135137
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.
136138

137139
```javascript
@@ -239,13 +241,13 @@ This article describes only one of the many features available in the Spatial IO
239241
- [Read and write spatial data]
240242
- [Add an OGC map layer]
241243
- [Connect to a WFS service]
242-
- [Use core operations]
243-
- [Learn about supported data formats]
244+
- [Core IO operations]
245+
- [Supported data format details]
244246
- [Get documentation for the Azure Maps Spatial IO package]
245247

246248
[Add a simple data layer]: spatial-io-add-simple-data-layer.md
247249
[Read and write spatial data]: spatial-io-read-write-spatial-data.md
248-
[Add an OGC map layer]: spatial-io-add-ogc-map-layer.md
250+
[Add a map layer from the Open Geospatial Consortium]: spatial-io-add-ogc-map-layer.md
249251
[Connect to a WFS service]: spatial-io-connect-wfs-service.md
250252
[Use core operations]: spatial-io-core-operations.md
251253
[Learn about supported data formats]: spatial-io-supported-data-format-details.md

articles/azure-maps/spatial-io-add-simple-data-layer.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The simple data layer achieves this functionality by wrapping multiple rendering
1919

2020
The `SimpleDataLayer` class also provides a built-in popup feature with a popup template. The popup appears when a feature is selected. This layer also supports clustered data. When a cluster is selected, the map zooms in to the cluster and expands it into individual points and subclusters. You can disable the popup feature if you don't need it.
2121

22-
The `SimpleDataLayer` class is intended to be used on large data sets that include features with many applied geometry types and styles. When you use this class, it adds an overhead of six layers that contain style expressions. If you only need to render a few geometry types and styles on a feature, it might be more efficient to use a core rendering layer.
22+
The `SimpleDataLayer` class is intended to be used on large data sets that include features with many applied geometry types and styles. When you use this class, it adds an overhead of six layers that contain style expressions. If you only need to render a few geometry types and styles on a feature, it might be more efficient to use a core rendering layer. For more information, see [Add a bubble layer to the map](https://learn.microsoft.com/en-us/azure/azure-maps/map-add-bubble-layer), [Add a line layer to the map](https://learn.microsoft.com/en-us/azure/azure-maps/map-add-line-layer), and [Add a polygon layer to the map](https://learn.microsoft.com/en-us/azure/azure-maps/map-add-shape).
2323

2424
## Use a simple data layer
2525

@@ -119,7 +119,7 @@ The simple data layer is a powerful tool in the following scenarios:
119119
- Features in the data set have several style properties that are individually set.
120120
- You're not sure what the data set contains.
121121

122-
For example, when you're parsing XML data feeds, you might not know the features' exact style and geometry types. The [Simple data layer options] sample shows how the simple data layer renders the features of a Keyhole Markup Language (KML) file. You can also see the options in the `SimpleDataLayer` class. For the source code for this sample, see [Simple data layer options.html] in the Azure Maps code samples in GitHub.
122+
For example, when you're parsing XML data feeds, you might not know the features' style and geometry types. The [Simple data layer options] sample shows how the simple data layer renders the features of a Keyhole Markup Language (KML) file. You can also see the options in the `SimpleDataLayer` class. For the source code for this sample, see [Simple data layer options.html] in the Azure Maps code samples in GitHub.
123123

124124
:::image type="content" source="./media/spatial-io-add-simple-data-layer/simple-data-layer-options.png"alt-text="A screenshot of map with a panel on the left showing simple data layer options.":::
125125

@@ -149,7 +149,7 @@ The following sections provide details on the default style properties that the
149149

150150
### Bubble layer style properties
151151

152-
If a feature is a `Point` or a `MultiPoint`, and the feature doesn't have an image property to use as a custom icon to render the point as a symbol, the feature is rendered with a `BubbleLayer`.
152+
If a feature is a `Point` or a `MultiPoint`, and doesn't have an image property to use as a custom icon to render the point as a symbol, it's rendered with a `BubbleLayer`.
153153

154154
| Layer option | Supported property names | Default value |
155155
|--------------|----------------------------|---------------|
@@ -167,7 +167,7 @@ If a feature is a `Point` or a `MultiPoint`, and the feature doesn't have an ima
167167
| `medium` | `8` |
168168
| `large` | `12` |
169169

170-
Clusters are also rendered via the bubble layer. By default, the radius of a cluster is set to 16. The color of the cluster varies depending on the number of points in the cluster, as defined in the following table:
170+
Clusters are also rendered in the bubble layer. By default, the radius of a cluster is set to 16. The color of the cluster varies depending on the number of points in the cluster, as defined in the following table:
171171

172172
| Number of points | Color |
173173
|-------------|----------|
@@ -177,7 +177,7 @@ Clusters are also rendered via the bubble layer. By default, the radius of a clu
177177

178178
### Symbol style properties
179179

180-
If a feature is a `Point` or `MultiPoint`, and the feature has an image property that would be used as a custom icon to render the point as a symbol, the feature is rendered with a `SymbolLayer`.
180+
If a feature is a `Point` or `MultiPoint`, with an image property used as a custom icon to render the point as a symbol, then it's rendered with a `SymbolLayer`.
181181

182182
| Layer option | Supported property names | Default value |
183183
|--------------|----------------------------|---------------|
@@ -199,7 +199,7 @@ If the point feature is a cluster, the `point_count_abbreviated` property is ren
199199

200200
### Line style properties
201201

202-
If the feature is a `LineString`, `MultiLineString`, `Polygon`, or `MultiPolygon`, the feature is rendered with a `LineLayer`.
202+
If the feature is a `LineString`, `MultiLineString`, `Polygon`, or `MultiPolygon`, it's rendered with a `LineLayer`.
203203

204204
| Layer option | Supported property names | Default value |
205205
|-----------------|----------------------------|---------------|
@@ -209,7 +209,7 @@ If the feature is a `LineString`, `MultiLineString`, `Polygon`, or `MultiPolygon
209209

210210
### Polygon style properties
211211

212-
If the feature is a `Polygon` or a `MultiPolygon`, and the feature either doesn't have a height property, or if the height property is zero, the feature is rendered with a `PolygonLayer`.
212+
If the feature is a `Polygon` or a `MultiPolygon`, and doesn't have a height property, or if the height property is zero, it's rendered with a `PolygonLayer`.
213213

214214
| Layer option | Supported property names | Default value |
215215
|--------------|----------------------------|---------------|
@@ -218,7 +218,7 @@ If the feature is a `Polygon` or a `MultiPolygon`, and the feature either doesn'
218218

219219
### Extruded polygon style properties
220220

221-
If the feature is a `Polygon` or a `MultiPolygon`, and has a height property with a value greater than zero, the feature is rendered with an `PolygonExtrusionLayer`.
221+
If the feature is a `Polygon` or a `MultiPolygon`, and has a height property with a value greater than zero, it's rendered with a `PolygonExtrusionLayer`.
222222

223223
| Layer option | Supported property names | Default value |
224224
|--------------|----------------------------|---------------|
@@ -244,7 +244,7 @@ See the following articles to get more code samples to add to your maps:
244244
[Add an OGC map layer]: spatial-io-add-ogc-map-layer.md
245245
[Connect to a WFS service]: spatial-io-connect-wfs-service.md
246246
[GitHub's GeoJSON map support]: https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files#mapping-geojsontopojson-files-on-github
247-
[Use core operations]: spatial-io-core-operations.md
247+
[Core IO operations]: spatial-io-core-operations.md
248248
[popup template]: map-add-popup.md#add-popup-templates-to-the-map
249249
[Read and write spatial data]: spatial-io-read-write-spatial-data.md
250250
[Simple data layer options.html]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Spatial%20IO%20Module/Simple%20data%20layer%20options/Simple%20data%20layer%20options.html

0 commit comments

Comments
 (0)