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
@@ -28,16 +28,15 @@ The following are examples of custom data:
28
28
-[Azure Maps account]
29
29
-[Subscription key]
30
30
31
-
This article uses the [Postman] application, but you may use a different API development environment.
31
+
This article uses the [Bruno] application, but you may use a different API development environment.
32
32
33
33
>[!IMPORTANT]
34
34
> In the URL examples, replace `{Your-Azure-Maps-Subscription-key}` with your Azure Maps subscription key.
35
35
36
36
## Render pushpins with labels and a custom image
37
37
38
38
> [!NOTE]
39
-
> The procedure in this section requires an Azure Maps account in the Gen1 or Gen2 pricing tier.
40
-
The Azure Maps account Gen1 S0 pricing tier only supports a single instance of the [pins] parameter. It allows you to render up to five pushpins, specified in the URL request, with a custom image.
39
+
> The procedure in this section requires an Azure Maps account in the Gen2 pricing tier.
41
40
>
42
41
> **Azure Maps Gen1 pricing tier retirement**
43
42
>
@@ -47,25 +46,27 @@ The Azure Maps account Gen1 S0 pricing tier only supports a single instance of t
47
46
48
47
To get a static image with custom pins and labels:
49
48
50
-
1. In the Postman app, select **New**.
49
+
1. In the Bruno app, select **New Request**.
51
50
52
-
2. In the **Create New** window, select **HTTP Request**.
51
+
1. Set type to **HTTP**.
53
52
54
-
3. Enter a **Request name** for the request, such as *Get Map Static Image*.
53
+
1. Enter a **Name** for the request, such as *Get Map Static Image*.
1. Select the *Send Request* arrow that appears to the right of the request URL.
122
124
123
-
7. The service returns the following image:
125
+
The following image is returned:
124
126
125
-
:::image type="content" source="./media/how-to-render-custom-data/circle-custom-pins.png" alt-text="Render a circle with custom pushpins.":::
127
+
:::image type="content" source="./media/how-to-render-custom-data/circle-custom-pins.png" alt-text="Render a circle with custom pushpins.":::
126
128
127
-
8. Next, change the color of the pushpins by modifying the `co` style modifier. If you look at the value of the `pins` parameter (`pins=default|la15+50|al0.66|lc003C62|co002D62|`), notice that the current color is `#002D62`. To change the color to `#41d42a`, replace `#002D62` with `#41d42a`. Now the `pins` parameter is `pins=default|la15+50|al0.66|lc003C62|co41D42A|`. The request looks like the following URL:
129
+
1. Next, change the color of the pushpins by modifying the `co` style modifier. If you look at the value of the `pins` parameter (`pins=default|la15+50|al0.66|lc003C62|co002D62|`), notice that the current color is `#002D62`. To change the color to `#41d42a`, replace `#002D62` with `#41d42a`. Now the `pins` parameter is `pins=default|la15+50|al0.66|lc003C62|co41D42A|`. The request looks like the following URL:
1. Select the *Send Request* arrow that appears to the right of the request URL.
136
138
137
-
:::image type="content" source="./media/how-to-render-custom-data/circle-updated-pins.png" alt-text="Render a circle with updated pushpins.":::
139
+
The following image is returned:
140
+
141
+
:::image type="content" source="./media/how-to-render-custom-data/circle-updated-pins.png" alt-text="Render a circle with updated pushpins.":::
138
142
139
143
Similarly, you can change, add, and remove other style modifiers.
140
144
145
+
### Add a traffic layer
146
+
147
+
To get a static image with a traffic layer rendered on a roads basemap, use the `trafficLayer` parameter. The following example shows a map with a traffic layer as well as a pin with a label:
148
+
149
+
1. In the Bruno app, select **New Request**.
150
+
151
+
1. Set type to **HTTP**.
152
+
153
+
1. Enter a **Name** for the request, such as *Get Map Static Image - traffic layer*.
1. Select the *Send Request* arrow that appears to the right of the request URL.
166
+
167
+
The following image is returned:
168
+
169
+
:::image type="content" source="./media/how-to-render-custom-data/rendering-traffic-layer-information.png" alt-text="A screenshot of a map showing the traffic layer, as well as a custom pushpin with the label Westminster Bridge.":::
170
+
171
+
### Create a map using the dark gray style
172
+
173
+
To get a static image with the dark gray style appplied, set the `TilesetId` parameter to `microsoft.base.darkgrey`:
174
+
175
+
1. In the Bruno app, select **New Request**.
176
+
177
+
1. Set type to **HTTP**.
178
+
179
+
1. Enter a **Name** for the request, such as *Get Map Static Image - dark gray style*.
1. Select the *Send Request* arrow that appears to the right of the request URL.
192
+
193
+
The following image is returned:
194
+
195
+
:::image type="content" source="./media/how-to-render-custom-data/darkgray.png" alt-text="A screenshot of a map showing the dark gray style created by setting the tileset ID parameter to microsoft.base.darkgrey.":::
196
+
197
+
For more information the different styles available using the TilesetId parameter, see [TilesetId] in the *Render - Get Map Tileset* REST API documentation.
198
+
199
+
200
+
### Create a map using the imagery style
201
+
202
+
To get a static image with the imagery style appplied, set the `TilesetId` parameter to `microsoft.imagery`:
203
+
204
+
1. In the Bruno app, select **New Request**.
205
+
206
+
1. Set type to **HTTP**.
207
+
208
+
1. Enter a **Name** for the request, such as *Get Map Static Image - imagery style*.
1. Select the *Send Request* arrow that appears to the right of the request URL.
221
+
222
+
The following image is returned:
223
+
224
+
:::image type="content" source="./media/how-to-render-custom-data/darkgray.png" alt-text="A screenshot of a map showing the dark gray style created by setting the tileset ID parameter to microsoft.base.darkgrey.":::
225
+
226
+
For more information the different styles available using the TilesetId parameter, see [TilesetId] in the *Render - Get Map Tileset* REST API documentation.
0 commit comments