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/map-add-line-layer.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ A line layer can be used to render `LineString` and `MultiLineString` features a
15
15
> [!TIP]
16
16
> Line layers by default will render the coordinates of polygons as well as lines in a data source. To limit the layer such that it only renders LineString features set the `filter` property of the layer to `['==', ['geometry-type'], 'LineString']` or `['any', ['==', ['geometry-type'], 'LineString'], ['==', ['geometry-type'], 'MultiLineString']]` if you want to include MultiLineString features as well.
17
17
18
-
The following code shows how to create a line. Add the line to a data source, then render it with a line layer using the [LineLayer](/javascript/api/azure-maps-control/atlas.layer.linelayer) class.
18
+
The following code shows how to create a line. Add the line to a data source, then render it with a line layer using the [LineLayer] class.
19
19
20
20
```javascript
21
21
//Create a data source and add it to the map.
@@ -41,11 +41,11 @@ The following screenshot shows a sample of the above functionality.
Line layers can be styled using [LineLayerOptions](/javascript/api/azure-maps-control/atlas.linelayeroptions) and [Use data-driven style expressions](data-driven-style-expressions-web-sdk.md).
44
+
Line layers can be styled using [LineLayerOptions] and [Use data-driven style expressions].
45
45
46
46
## Add symbols along a line
47
47
48
-
The following sample demonstrates how to add arrow icons along a line on the map. When using a symbol layer, set the "placement" option to "line". This option will render the symbols along the line and rotate the icons (0 degrees = right).
48
+
The following sample demonstrates how to add arrow icons along a line on the map. When using a symbol layer, set the `placement` option to `line`. This option renders the symbols along the line and rotates the icons (0 degrees = right).
49
49
50
50
```javascript
51
51
functionInitMap()
@@ -121,7 +121,7 @@ function InitMap()
121
121
}
122
122
```
123
123
124
-
This code will create a map that appears as follows:
124
+
This code creates a map that appears as follows:
125
125
126
126
:::image type="content" source="./media/map-add-line-layer/add-symbols-along-a-line.png"alt-text="A screenshot showing a line layer on an Azure Maps map with arrow symbols along the line.":::
127
127
@@ -133,7 +133,7 @@ This code will create a map that appears as follows:
> The Azure Maps web SDK provides several customizable image templates you can use with the symbol layer. For more information, see the [How to use image templates](how-to-use-image-templates-web-sdk.md) document.
136
+
> The Azure Maps web SDK provides several customizable image templates you can use with the symbol layer. For more information, see the [How to use image templates] document.
137
137
138
138
<aname="line-stroke-gradient"></a>
139
139
@@ -168,31 +168,37 @@ The Line layer has several styling options. For a fully functional sample that i
168
168
Learn more about the classes and methods used in this article:
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-pin.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The maps image sprite manager loads custom images used by the symbol layer. It s
29
29
30
30
Before you can add a symbol layer to the map, you need to take a couple of steps. First, create a data source, and add it to the map. Create a symbol layer. Then, pass in the data source to the symbol layer, to retrieve the data from the data source. Finally, add data into the data source, so that there's something to be rendered.
31
31
32
-
The code below demonstrates what should be added to the map after it has loaded. This sample renders a single point on the map using a symbol layer.
32
+
The following code demonstrates what should be added to the map after it has loaded. This sample renders a single point on the map using a symbol layer.
33
33
34
34
```javascript
35
35
//Create a data source and add it to the map.
@@ -166,7 +166,7 @@ function InitMap()
166
166
------------------------------------->
167
167
168
168
> [!TIP]
169
-
> The Azure Maps web SDK provides several customizable image templates you can use with the symbol layer. For more information, see the [How to use image templates](how-to-use-image-templates-web-sdk.md) document.
169
+
> The Azure Maps web SDK provides several customizable image templates you can use with the symbol layer. For more information, see the [How to use image templates] document.
170
170
171
171
## Customize a symbol layer
172
172
@@ -210,7 +210,7 @@ See the following articles for more code samples to add to your maps:
0 commit comments