Skip to content

Commit a4f40fd

Browse files
committed
Updated render api-version to the latest (2024-04-01)
1 parent 9dc2e22 commit a4f40fd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

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

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

5555
```http
56-
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
56+
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
5757
```
5858

5959
## Additional information

articles/azure-maps/migrate-get-imagery-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ http://dev.virtualearth.net/REST/V1/Imagery/Metadata/road/37.770864,-122.467217?
6666
Azure Maps _Get Map Tile_ API request:
6767

6868
``` http
69-
https://atlas.microsoft.com/map/tile?api-version=2022-08-01&tilesetId=microsoft.base.&zoom=15&x=5236&y=12665&tileSize=256&subscription-key={Your-Azure-Maps-Subscription-key}
69+
https://atlas.microsoft.com/map/tile?api-version=2024-04-01&tilesetId=microsoft.base.&zoom=15&x=5236&y=12665&tileSize=256&subscription-key={Your-Azure-Maps-Subscription-key}
7070
```
7171

7272
## Response fields

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/png?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/png?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={Your-Azure-Maps-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/png?subscription-key={Your-Azure-Maps-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)