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/choose-map-style.md
+71-4Lines changed: 71 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ var map = new atlas.Map('map', {
27
27
style:'road'
28
28
29
29
//Additional map options.
30
-
};
30
+
});
31
31
32
32
//Update the style options at anytime using `setStyle` function.
33
33
map.setStyle({
@@ -37,8 +37,6 @@ map.setStyle({
37
37
});
38
38
```
39
39
40
-
For a fully functional sample that shows how the different styles affect how the map is rendered, see [Map style options] in the [Azure Maps Samples]. For the source code for this sample, see [Map style options source code].
@@ -57,7 +55,7 @@ var map = new atlas.Map('map', {
57
55
style:'grayscale_dark',
58
56
59
57
//Additional map options
60
-
);
58
+
});
61
59
```
62
60
63
61
:::image type="content" source="./media/choose-map-style/set-base-map-style-on-initialization.png" alt-text="Screenshot showing the grayscale dark style being set during the map load process.":::
> For the supported map styles on each `styleOverrides` option, please read [styleOverrides] API documentation for more details.
151
+
152
+
For a fully functional sample that shows how the different styles affect how the map is rendered, see [Map style options] in the [Azure Maps Samples]. For the source code for this sample, see [Map style options source code].
153
+
88
154
## Add the style picker control
89
155
90
156
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.
@@ -154,6 +220,7 @@ See the following articles for more code samples to add to your maps:
0 commit comments