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-spatial-io-module.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The following video provides an overview of the Spatial IO module in the Azure M
47
47
48
48
You can load the Azure Maps Spatial IO module by using one of the following two options:
49
49
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:
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.
135
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.
136
138
137
139
```javascript
@@ -239,13 +241,13 @@ This article describes only one of the many features available in the Spatial IO
239
241
- [Read and write spatial data]
240
242
- [Add an OGC map layer]
241
243
- [Connect to a WFS service]
242
-
- [Use core operations]
243
-
- [Learn about supported data formats]
244
+
- [Core IO operations]
245
+
- [Supported data format details]
244
246
- [Get documentation for the Azure Maps Spatial IO package]
245
247
246
248
[Add a simple data layer]: spatial-io-add-simple-data-layer.md
247
249
[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
249
251
[Connect to a WFS service]: spatial-io-connect-wfs-service.md
Copy file name to clipboardExpand all lines: articles/azure-maps/spatial-io-add-simple-data-layer.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The simple data layer achieves this functionality by wrapping multiple rendering
19
19
20
20
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.
21
21
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).
23
23
24
24
## Use a simple data layer
25
25
@@ -119,7 +119,7 @@ The simple data layer is a powerful tool in the following scenarios:
119
119
- Features in the data set have several style properties that are individually set.
120
120
- You're not sure what the data set contains.
121
121
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.
123
123
124
124
:::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.":::
125
125
@@ -149,7 +149,7 @@ The following sections provide details on the default style properties that the
149
149
150
150
### Bubble layer style properties
151
151
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`.
@@ -167,7 +167,7 @@ If a feature is a `Point` or a `MultiPoint`, and the feature doesn't have an ima
167
167
|`medium`|`8`|
168
168
|`large`|`12`|
169
169
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:
171
171
172
172
| Number of points | Color |
173
173
|-------------|----------|
@@ -177,7 +177,7 @@ Clusters are also rendered via the bubble layer. By default, the radius of a clu
177
177
178
178
### Symbol style properties
179
179
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`.
@@ -209,7 +209,7 @@ If the feature is a `LineString`, `MultiLineString`, `Polygon`, or `MultiPolygon
209
209
210
210
### Polygon style properties
211
211
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`.
@@ -218,7 +218,7 @@ If the feature is a `Polygon` or a `MultiPolygon`, and the feature either doesn'
218
218
219
219
### Extruded polygon style properties
220
220
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`.
[Read and write spatial data]: spatial-io-read-write-spatial-data.md
250
250
[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