Skip to content

Commit 4762430

Browse files
committed
improve grammar and convert links to end links in choose-map-style.md
1 parent 5ce0438 commit 4762430

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

articles/azure-maps/choose-map-style.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ms.custom: devx-track-js
1111

1212
# Change the style of the map
1313

14-
The map control supports several different map [style options](/javascript/api/azure-maps-control/atlas.styleoptions) and [base map styles](supported-map-styles.md). All styles can be set when the map control is being initialized. Or, you can set styles by using the map control's `setStyle` function. This article shows you how to use these style options to customize the map's appearance. Also, you'll learn how to implement the style picker control in your map. The style picker control allows the user to toggle between different base styles.
14+
The map control supports several different map [style options] and [base map styles]. All styles can be set when the map control is being initialized. Or, you can set styles by using the map control's `setStyle` function. This article shows you how to use these style options to customize the map's appearance and how to implement the style picker control in your map. The style picker control allows the user to toggle between different base styles.
1515

1616
## Set map style options
1717

18-
Style options can be set during web control initialization. Or, you can update style options by calling the map control's `setStyle` function. To see all available style options, see [style options](/javascript/api/azure-maps-control/atlas.styleoptions).
18+
Style options can be set during web control initialization. Or, you can update style options by calling the map control's `setStyle` function. To see all available style options, see [style options].
1919

2020
```javascript
2121
//Set the style options when creating the map.
@@ -49,11 +49,11 @@ The following tool shows how the different style options change how the map is r
4949
5050
## Set a base map style
5151
52-
You can also initialize the map control with one of the [base map styles](supported-map-styles.md) that are available in the Web SDK. You can then use the `setStyle` function to update the base style with a different map style.
52+
You can also initialize the map control with one of the [base map styles] that are available in the Web SDK. You can then use the `setStyle` function to update the base style with a different map style.
5353
5454
### Set a base map style on initialization
5555
56-
Base styles of the map control can be set during initialization. In the following code, the `style` option of the map control is set to the [`grayscale_dark` base map style](supported-map-styles.md#grayscale_dark).
56+
Base styles of the map control can be set during initialization. In the following code, the `style` option of the map control is set to the [`grayscale_dark` base map style].
5757
5858
```javascript
5959
var map = new atlas.Map('map', {
@@ -70,13 +70,13 @@ var map = new atlas.Map('map', {
7070
7171
### Update the base map style
7272
73-
The base map style can be updated by using the `setStyle` function and setting the `style` option to either change to a different base map style or add additional style options.
73+
The base map style can be updated by using the `setStyle` function and setting the `style` option to either change to a different base map style or add more style options.
7474
7575
```javascript
7676
map.setStyle({ style: 'satellite' });
7777
```
7878
79-
In the following code, after a map instance is loaded, the map style is updated from `grayscale_dark` to `satellite` using the [setStyle](/javascript/api/azure-maps-control/atlas.map#setstyle-styleoptions-) function.
79+
In the following code, after a map instance is loaded, the map style is updated from `grayscale_dark` to `satellite` using the [setStyle] function.
8080
8181
<br/>
8282
@@ -87,20 +87,20 @@ In the following code, after a map instance is loaded, the map style is updated
8787
8888
The style picker control provides an easy to use button with flyout panel that can be used by the end user to switch between base styles.
8989
90-
The style picker has two different layout options: `icon` and `list`. Also, the style picker allows you to choose two different style picker control `style` options: `light` and `dark`. In this example, the style picker uses the `icon` layout and displays a select list of base map styles in the form of icons. The style control picker includes the following base set of styles: `["road", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief"]`. For more information on style picker control options, see [Style Control Options](/javascript/api/azure-maps-control/atlas.stylecontroloptions).
90+
The style picker has two different layout options: `icon` and `list`. Also, the style picker allows you to choose two different style picker control `style` options: `light` and `dark`. In this example, the style picker uses the `icon` layout and displays a select list of base map styles in the form of icons. The style control picker includes the following base set of styles: `["road", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief"]`. For more information on style picker control options, see [Style Control Options].
9191
92-
The image below shows the style picker control displayed in `icon` layout.
92+
The following image shows the style picker control displayed in `icon` layout.
9393
9494
:::image type="content" source="./media/choose-map-style/style-picker-icon-layout.png" alt-text="Style picker icon layout":::
9595
96-
The image below shows the style picker control displayed in `list` layout.
96+
The following image shows the style picker control displayed in `list` layout.
9797
9898
:::image type="content" source="./media/choose-map-style/style-picker-list-layout.png" alt-text="Style picker list layout":::
9999
100100
> [!IMPORTANT]
101101
> By default the style picker control lists all the styles available under the S0 pricing tier of Azure Maps. If you want to reduce the number of styles in this list, pass an array of the styles you want to appear in the list into the `mapStyle` option of the style picker. If you are using Gen 1 (S1) or Gen 2 pricing tier and want to show all available styles, set the `mapStyles` option of the style picker to `"all"`.
102102
103-
The following code shows you how to override the default `mapStyles` base style list. In this example, we're setting the `mapStyles` option to list which base styles we want to be displayed by the style picker control.
103+
The following code shows you how to override the default `mapStyles` base style list. In this example, we're setting the `mapStyles` option to list the base styles to display in the style picker control.
104104
105105
<br/>
106106
@@ -112,24 +112,37 @@ The following code shows you how to override the default `mapStyles` base style
112112
To learn more about the classes and methods used in this article:
113113
114114
> [!div class="nextstepaction"]
115-
> [Map](/javascript/api/azure-maps-control/atlas.map)
115+
> [Map]
116116
117117
> [!div class="nextstepaction"]
118-
> [StyleOptions](/javascript/api/azure-maps-control/atlas.styleoptions)
118+
> [StyleOptions]
119119
120120
> [!div class="nextstepaction"]
121-
> [StyleControl](/javascript/api/azure-maps-control/atlas.control.stylecontrol)
121+
> [StyleControl]
122122
123123
> [!div class="nextstepaction"]
124-
> [StyleControlOptions](/javascript/api/azure-maps-control/atlas.stylecontroloptions)
124+
> [StyleControlOptions]
125125
126126
See the following articles for more code samples to add to your maps:
127127
128128
> [!div class="nextstepaction"]
129-
> [Add map controls](map-add-controls.md)
129+
> [Add map controls]
130130
131131
> [!div class="nextstepaction"]
132-
> [Add a symbol layer](map-add-pin.md)
132+
> [Add a symbol layer]
133133
134134
> [!div class="nextstepaction"]
135-
> [Add a bubble layer](map-add-bubble-layer.md)
135+
> [Add a bubble layer]
136+
137+
[style options]: /javascript/api/azure-maps-control/atlas.styleoptions
138+
[base map styles]: supported-map-styles.md
139+
[`grayscale_dark` base map style]: supported-map-styles.md#grayscale_dark
140+
[setStyle]: /javascript/api/azure-maps-control/atlas.map#setstyle-styleoptions-
141+
[Style Control Options]: /javascript/api/azure-maps-control/atlas.stylecontroloptions
142+
[Map]: /javascript/api/azure-maps-control/atlas.map
143+
[StyleOptions]: /javascript/api/azure-maps-control/atlas.styleoptions
144+
[StyleControl]: /javascript/api/azure-maps-control/atlas.control.stylecontrol
145+
[StyleControlOptions]: /javascript/api/azure-maps-control/atlas.stylecontroloptions
146+
[Add map controls]: map-add-controls.md
147+
[Add a symbol layer]: map-add-pin.md
148+
[Add a bubble layer]: map-add-bubble-layer.md

0 commit comments

Comments
 (0)