Skip to content

Commit bcc7a8c

Browse files
authored
Merge pull request #126327 from stevemunk/render-request-v-update
Updated The Render service example requests to use the latest api-version (2024-04-01)
2 parents 9c26486 + e3fd321 commit bcc7a8c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

articles/azure-maps/how-to-show-attribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You need the following information to run the `attribution` command:
5151
Run the following GET request to get the corresponding copyright attribution to display on the map:
5252

5353
```http
54-
https://atlas.microsoft.com/map/attribution?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2.1&tilesetId=microsoft.base&zoom=6&bounds=-122.414162,47.579490,-122.247157,47.668372
54+
https://atlas.microsoft.com/map/attribution?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2024-04-01&tilesetId=microsoft.base&zoom=6&bounds=-122.414162,47.579490,-122.247157,47.668372
5555
```
5656

5757
## Additional information

articles/azure-maps/power-bi-visual-add-tile-layer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ parameters:
5454
As an example, here's a formatted tile URL for the [weather radar tile service] in Azure Maps.
5555

5656
```html
57-
https://atlas.microsoft.com/map/tile?zoom={z}&x={x}&y={y}&tilesetId=microsoft.weather.radar.main&api-version=2.0&subscription-key={Your-Azure-Maps-Subscription-key}
57+
https://atlas.microsoft.com/map/tile?zoom={z}&x={x}&y={y}&tilesetId=microsoft.weather.radar.main&api-version=2024-04-01&subscription-key={Your-Azure-Maps-Subscription-key}
5858
```
5959

6060
For more information on Azure Maps tiling system, see [Zoom levels and tile grid].

articles/azure-maps/tutorial-ev-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pins = "custom|an15 53||{}||https://raw.githubusercontent.com/Azure-Samples/Azur
172172
encodedPins = urllib.parse.quote(pins, safe='')
173173

174174
# Render the range and electric vehicle charging points on the map.
175-
staticMapResponse = await session.get("https://atlas.microsoft.com/map/static/png?api-version=2022-08-01&subscription-key={}&pins={}&path={}&bbox={}&zoom=12".format(subscriptionKey,encodedPins,path,str(minLon)+", "+str(minLat)+", "+str(maxLon)+", "+str(maxLat)))
175+
staticMapResponse = await session.get("https://atlas.microsoft.com/map/static?api-version=2024-04-01&subscription-key={}&pins={}&path={}&bbox={}&zoom=12".format(subscriptionKey,encodedPins,path,str(minLon)+", "+str(minLat)+", "+str(maxLon)+", "+str(maxLat)))
176176

177177
poiRangeMap = await staticMapResponse.content.read()
178178

@@ -260,7 +260,7 @@ minLat -= latBuffer
260260
maxLat += latBuffer
261261

262262
# Render the route on the map.
263-
staticMapResponse = await session.get("https://atlas.microsoft.com/map/static/png?api-version=2022-08-01&subscription-key={}&&path={}&pins={}&bbox={}&zoom=16".format(subscriptionKey,path,pins,str(minLon)+", "+str(minLat)+", "+str(maxLon)+", "+str(maxLat)))
263+
staticMapResponse = await session.get("https://atlas.microsoft.com/map/static?api-version=2024-04-01&subscription-key={}&&path={}&pins={}&bbox={}&zoom=16".format(subscriptionKey,path,pins,str(minLon)+", "+str(minLat)+", "+str(maxLon)+", "+str(maxLat)))
264264

265265
staticMapImage = await staticMapResponse.content.read()
266266

articles/azure-maps/weather-service-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ session = aiohttp.ClientSession()
134134

135135
pins="default|la-25+60|ls12|lc003C62|co9B2F15||'Location A'{} {}|'Location B'{} {}|'Location C'{} {}|'Location D'{} {}".format(coords[1],coords[0],coords[3],coords[2],coords[5],coords[4], coords[7],coords[6])
136136

137-
image_response = "https://atlas.microsoft.com/map/static/png?subscription-key={}&api-version=1.0&layer=basic&style=main&zoom=6&center={},{}&pins={}".format(subscription_key,coords[7],coords[6],pins)
137+
image_response = "https://atlas.microsoft.com/map/static?subscription-key={}&api-version=2024-04-01&layer=basic&style=main&zoom=6&center={},{}&pins={}".format(subscription_key,coords[7],coords[6],pins)
138138

139139
static_map_response = await session.get(image_response)
140140

0 commit comments

Comments
 (0)