Skip to content

Commit e22ed1a

Browse files
authored
Merge pull request #111646 from stevemunk/map-add-line-layer-grammar
Improvements to grammar and creation of end-links
2 parents 27a35a0 + 63256e0 commit e22ed1a

File tree

4 files changed

+100
-72
lines changed

4 files changed

+100
-72
lines changed

articles/azure-maps/map-add-line-layer.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A line layer can be used to render `LineString` and `MultiLineString` features a
1515
> [!TIP]
1616
> 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.
1717
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.
1919

2020
```javascript
2121
//Create a data source and add it to the map.
@@ -41,11 +41,11 @@ The following screenshot shows a sample of the above functionality.
4141
</iframe>
4242
----------------------------------------------------------------------->
4343

44-
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].
4545

4646
## Add symbols along a line
4747

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).
4949

5050
```javascript
5151
function InitMap()
@@ -121,7 +121,7 @@ function InitMap()
121121
}
122122
```
123123

124-
This code will create a map that appears as follows:
124+
This code creates a map that appears as follows:
125125

126126
:::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.":::
127127

@@ -133,7 +133,7 @@ This code will create a map that appears as follows:
133133
----------------------------------------------------------------------->
134134

135135
> [!TIP]
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](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.
137137
138138
<a name="line-stroke-gradient"></a>
139139

@@ -168,31 +168,37 @@ The Line layer has several styling options. For a fully functional sample that i
168168
Learn more about the classes and methods used in this article:
169169

170170
> [!div class="nextstepaction"]
171-
> [LineLayer](/javascript/api/azure-maps-control/atlas.layer.linelayer)
171+
> [LineLayer]
172172
173173
> [!div class="nextstepaction"]
174-
> [LineLayerOptions](/javascript/api/azure-maps-control/atlas.linelayeroptions)
174+
> [LineLayerOptions]
175175
176176
See the following articles for more code samples to add to your maps:
177177

178178
> [!div class="nextstepaction"]
179-
> [Create a data source](create-data-source-web-sdk.md)
179+
> [Create a data source]
180180
181181
> [!div class="nextstepaction"]
182-
> [Add a popup](map-add-popup.md)
182+
> [Add a popup]
183183
184184
> [!div class="nextstepaction"]
185-
> [Use data-driven style expressions](data-driven-style-expressions-web-sdk.md)
185+
> [Use data-driven style expressions]
186186
187187
> [!div class="nextstepaction"]
188-
> [How to use image templates](how-to-use-image-templates-web-sdk.md)
188+
> [How to use image templates]
189189
190190
> [!div class="nextstepaction"]
191-
> [Add a polygon layer](map-add-shape.md)
191+
> [Add a polygon layer]
192192
193-
[Line with Stroke Gradient]: https://samples.azuremaps.com/line-layer/line-with-stroke-gradient
193+
[Add a polygon layer]: map-add-shape.md
194+
[Add a popup]: map-add-popup.md
194195
[Azure Maps Samples]: https://samples.azuremaps.com
196+
[Create a data source]: create-data-source-web-sdk.md
197+
[How to use image templates]: how-to-use-image-templates-web-sdk.md
198+
[Line Layer Options source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Line%20Layer/Line%20Layer%20Options/Line%20Layer%20Options.html
195199
[Line Layer Options]: https://samples.azuremaps.com/line-layer/line-layer-options
196-
197200
[Line with Stroke Gradient source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Line%20Layer/Line%20with%20Stroke%20Gradient/Line%20with%20Stroke%20Gradient.html
198-
[Line Layer Options source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Line%20Layer/Line%20Layer%20Options/Line%20Layer%20Options.html
201+
[Line with Stroke Gradient]: https://samples.azuremaps.com/line-layer/line-with-stroke-gradient
202+
[LineLayer]: /javascript/api/azure-maps-control/atlas.layer.linelayer
203+
[LineLayerOptions]: /javascript/api/azure-maps-control/atlas.linelayeroptions
204+
[Use data-driven style expressions]: data-driven-style-expressions-web-sdk.md

articles/azure-maps/map-add-pin.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The maps image sprite manager loads custom images used by the symbol layer. It s
2929

3030
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.
3131

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.
3333

3434
```javascript
3535
//Create a data source and add it to the map.
@@ -166,7 +166,7 @@ function InitMap()
166166
------------------------------------->
167167

168168
> [!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.
170170
171171
## Customize a symbol layer
172172

@@ -210,7 +210,7 @@ See the following articles for more code samples to add to your maps:
210210
> [Use data-driven style expressions](data-driven-style-expressions-web-sdk.md)
211211
212212
> [!div class="nextstepaction"]
213-
> [How to use image templates](how-to-use-image-templates-web-sdk.md)
213+
> [How to use image templates]
214214
215215
> [!div class="nextstepaction"]
216216
> [Add a line layer](map-add-line-layer.md)
@@ -226,3 +226,4 @@ See the following articles for more code samples to add to your maps:
226226
227227
[Symbol Layer Options]: https://samples.azuremaps.com/?search=symbol%20layer&sample=symbol-layer-options
228228
[Symbol Layer Options source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Symbol%20Layer/Symbol%20Layer%20Options/Symbol%20Layer%20Options.html
229+
[How to use image templates]: how-to-use-image-templates-web-sdk.md

0 commit comments

Comments
 (0)