Skip to content

Commit 256880f

Browse files
Provide support for vector map styles in the GetStaticMap operation.
1 parent 1b230b8 commit 256880f

24 files changed

+898
-142
lines changed

generator/ServiceModels/geo-maps/geo-maps-2020-11-19.api.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@
9999
"sensitive":true
100100
},
101101
"Blob":{"type":"blob"},
102+
"Boolean":{
103+
"type":"boolean",
104+
"box":true
105+
},
102106
"ColorScheme":{
103107
"type":"string",
104108
"enum":[
@@ -257,11 +261,21 @@
257261
"location":"querystring",
258262
"locationName":"center"
259263
},
264+
"ColorScheme":{
265+
"shape":"ColorScheme",
266+
"location":"querystring",
267+
"locationName":"color-scheme"
268+
},
260269
"CompactOverlay":{
261270
"shape":"CompactOverlay",
262271
"location":"querystring",
263272
"locationName":"compact-overlay"
264273
},
274+
"CropLabels":{
275+
"shape":"Boolean",
276+
"location":"querystring",
277+
"locationName":"crop-labels"
278+
},
265279
"GeoJsonOverlay":{
266280
"shape":"GeoJsonOverlay",
267281
"location":"querystring",
@@ -277,11 +291,31 @@
277291
"location":"querystring",
278292
"locationName":"key"
279293
},
294+
"LabelSize":{
295+
"shape":"LabelSize",
296+
"location":"querystring",
297+
"locationName":"label-size"
298+
},
299+
"Language":{
300+
"shape":"LanguageTag",
301+
"location":"querystring",
302+
"locationName":"lang"
303+
},
280304
"Padding":{
281305
"shape":"Integer",
282306
"location":"querystring",
283307
"locationName":"padding"
284308
},
309+
"PoliticalView":{
310+
"shape":"CountryCode",
311+
"location":"querystring",
312+
"locationName":"political-view"
313+
},
314+
"PointsOfInterests":{
315+
"shape":"MapFeatureMode",
316+
"location":"querystring",
317+
"locationName":"pois"
318+
},
285319
"Radius":{
286320
"shape":"DistanceMeters",
287321
"box":true,
@@ -507,6 +541,25 @@
507541
"fault":true,
508542
"retryable":{"throttling":false}
509543
},
544+
"LabelSize":{
545+
"type":"string",
546+
"enum":[
547+
"Small",
548+
"Large"
549+
]
550+
},
551+
"LanguageTag":{
552+
"type":"string",
553+
"max":35,
554+
"min":2
555+
},
556+
"MapFeatureMode":{
557+
"type":"string",
558+
"enum":[
559+
"Enabled",
560+
"Disabled"
561+
]
562+
},
510563
"MapStyle":{
511564
"type":"string",
512565
"enum":[
@@ -538,7 +591,10 @@
538591
},
539592
"StaticMapStyle":{
540593
"type":"string",
541-
"enum":["Satellite"]
594+
"enum":[
595+
"Satellite",
596+
"Standard"
597+
]
542598
},
543599
"String":{"type":"string"},
544600
"ThrottlingException":{

generator/ServiceModels/geo-maps/geo-maps-2020-11-19.docs.json

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"version": "2.0",
33
"service": "<p> Integrate high-quality base map data into your applications using <a href=\"https://maplibre.org\">MapLibre</a>. Capabilities include: </p> <ul> <li> <p>Access to comprehensive base map data, allowing you to tailor the map display to your specific needs.</p> </li> <li> <p>Multiple pre-designed map styles suited for various application types, such as navigation, logistics, or data visualization.</p> </li> <li> <p>Generation of static map images for scenarios where interactive maps aren't suitable, such as:</p> <ul> <li> <p>Embedding in emails or documents</p> </li> <li> <p>Displaying in low-bandwidth environments</p> </li> <li> <p>Creating printable maps</p> </li> <li> <p>Enhancing application performance by reducing client-side rendering</p> </li> </ul> </li> </ul>",
44
"operations": {
5-
"GetGlyphs": "<p>Returns the map's glyphs.</p>",
6-
"GetSprites": "<p>Returns the map's sprites.</p>",
7-
"GetStaticMap": "<p>Provides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.</p>",
8-
"GetStyleDescriptor": "<p>Returns information about the style.</p>",
9-
"GetTile": "<p>Returns a tile. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.</p>"
5+
"GetGlyphs": "<p> <code>GetGlyphs</code> returns the map's glyphs.</p>",
6+
"GetSprites": "<p> <code>GetSprites</code> returns the map's sprites.</p>",
7+
"GetStaticMap": "<p> <code>GetStaticMap</code> provides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.</p>",
8+
"GetStyleDescriptor": "<p> <code>GetStyleDescriptor</code> returns information about the style.</p>",
9+
"GetTile": "<p> <code>GetTile</code> returns a tile. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.</p>"
1010
},
1111
"shapes": {
1212
"AccessDeniedException": {
@@ -29,13 +29,20 @@
2929
"GetSpritesResponse$Blob": "<p>The body of the sprite sheet or JSON offset file (image/png or application/json, depending on input).</p>",
3030
"GetStaticMapResponse$Blob": "<p>The blob represents a map image as a <code>jpeg</code> for the <code>GetStaticMap</code> API.</p>",
3131
"GetStyleDescriptorResponse$Blob": "<p>This Blob contains the body of the style descriptor which is in application/json format.</p>",
32-
"GetTileResponse$Blob": "<p>The blob represents a vector tile in <code>mvt</code> format for the <code>GetTile</code> API.</p>"
32+
"GetTileResponse$Blob": "<p>The blob represents a vector tile in <code>mvt</code> or a raster tile in an image format.</p>"
33+
}
34+
},
35+
"Boolean": {
36+
"base": null,
37+
"refs": {
38+
"GetStaticMapRequest$CropLabels": "<p>It is a flag that takes in true or false. It prevents the labels that are on the edge of the image from being cut or obscured.</p>"
3339
}
3440
},
3541
"ColorScheme": {
3642
"base": null,
3743
"refs": {
3844
"GetSpritesRequest$ColorScheme": "<p>Sets color tone for map such as dark and light for specific map styles. It applies to only vector map styles such as Standard and Monochrome.</p> <p>Example: <code>Light</code> </p> <p>Default value: <code>Light</code> </p> <note> <p>Valid values for ColorScheme are case sensitive.</p> </note>",
45+
"GetStaticMapRequest$ColorScheme": "<p>Sets color tone for map, such as dark and light for specific map styles. It only applies to vector map styles, such as Standard.</p> <p>Example: <code>Light</code> </p> <p>Default value: <code>Light</code> </p> <note> <p>Valid values for <code>ColorScheme</code> are case sensitive.</p> </note>",
3946
"GetStyleDescriptorRequest$ColorScheme": "<p>Sets color tone for map such as dark and light for specific map styles. It applies to only vector map styles such as Standard and Monochrome.</p> <p>Example: <code>Light</code> </p> <p>Default value: <code>Light</code> </p> <note> <p>Valid values for ColorScheme are case sensitive.</p> </note>"
4047
}
4148
},
@@ -48,7 +55,8 @@
4855
"CountryCode": {
4956
"base": null,
5057
"refs": {
51-
"GetStyleDescriptorRequest$PoliticalView": "<p>Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>PAK</code>: Pakistan's view on Jammu and Kashmir and the Junagadh Area</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>"
58+
"GetStaticMapRequest$PoliticalView": "<p>Specifies the political view, using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>",
59+
"GetStyleDescriptorRequest$PoliticalView": "<p>Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format.</p> <p>The following political views are currently supported:</p> <ul> <li> <p> <code>ARG</code>: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands</p> </li> <li> <p> <code>EGY</code>: Egypt's view on Bir Tawil</p> </li> <li> <p> <code>IND</code>: India's view on Gilgit-Baltistan</p> </li> <li> <p> <code>KEN</code>: Kenya's view on the Ilemi Triangle</p> </li> <li> <p> <code>MAR</code>: Morocco's view on Western Sahara</p> </li> <li> <p> <code>RUS</code>: Russia's view on Crimea</p> </li> <li> <p> <code>SDN</code>: Sudan's view on the Halaib Triangle</p> </li> <li> <p> <code>SRB</code>: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands</p> </li> <li> <p> <code>SUR</code>: Suriname's view on the Courantyne Headwaters and Lawa Headwaters</p> </li> <li> <p> <code>SYR</code>: Syria's view on the Golan Heights</p> </li> <li> <p> <code>TUR</code>: Turkey's view on Cyprus and Northern Cyprus</p> </li> <li> <p> <code>TZA</code>: Tanzania's view on Lake Malawi</p> </li> <li> <p> <code>URY</code>: Uruguay's view on Rincon de Artigas</p> </li> <li> <p> <code>VNM</code>: Vietnam's view on the Paracel Islands and Spratly Islands</p> </li> </ul>"
5260
}
5361
},
5462
"DistanceMeters": {
@@ -184,6 +192,24 @@
184192
"refs": {
185193
}
186194
},
195+
"LabelSize": {
196+
"base": null,
197+
"refs": {
198+
"GetStaticMapRequest$LabelSize": "<p>Overrides the label size auto-calculated by <code>FileName</code>. Takes in one of the values - <code>Small</code> or <code>Large</code>.</p>"
199+
}
200+
},
201+
"LanguageTag": {
202+
"base": null,
203+
"refs": {
204+
"GetStaticMapRequest$Language": "<p>Specifies the language on the map labels using the BCP 47 language tag, limited to ISO 639-1 two-letter language codes. If the specified language data isn't available for the map image, the labels will default to the regional primary language.</p> <p>Supported codes:</p> <ul> <li> <p> <code>ar</code> </p> </li> <li> <p> <code>as</code> </p> </li> <li> <p> <code>az</code> </p> </li> <li> <p> <code>be</code> </p> </li> <li> <p> <code>bg</code> </p> </li> <li> <p> <code>bn</code> </p> </li> <li> <p> <code>bs</code> </p> </li> <li> <p> <code>ca</code> </p> </li> <li> <p> <code>cs</code> </p> </li> <li> <p> <code>cy</code> </p> </li> <li> <p> <code>da</code> </p> </li> <li> <p> <code>de</code> </p> </li> <li> <p> <code>el</code> </p> </li> <li> <p> <code>en</code> </p> </li> <li> <p> <code>es</code> </p> </li> <li> <p> <code>et</code> </p> </li> <li> <p> <code>eu</code> </p> </li> <li> <p> <code>fi</code> </p> </li> <li> <p> <code>fo</code> </p> </li> <li> <p> <code>fr</code> </p> </li> <li> <p> <code>ga</code> </p> </li> <li> <p> <code>gl</code> </p> </li> <li> <p> <code>gn</code> </p> </li> <li> <p> <code>gu</code> </p> </li> <li> <p> <code>he</code> </p> </li> <li> <p> <code>hi</code> </p> </li> <li> <p> <code>hr</code> </p> </li> <li> <p> <code>hu</code> </p> </li> <li> <p> <code>hy</code> </p> </li> <li> <p> <code>id</code> </p> </li> <li> <p> <code>is</code> </p> </li> <li> <p> <code>it</code> </p> </li> <li> <p> <code>ja</code> </p> </li> <li> <p> <code>ka</code> </p> </li> <li> <p> <code>kk</code> </p> </li> <li> <p> <code>km</code> </p> </li> <li> <p> <code>kn</code> </p> </li> <li> <p> <code>ko</code> </p> </li> <li> <p> <code>ky</code> </p> </li> <li> <p> <code>lt</code> </p> </li> <li> <p> <code>lv</code> </p> </li> <li> <p> <code>mk</code> </p> </li> <li> <p> <code>ml</code> </p> </li> <li> <p> <code>mr</code> </p> </li> <li> <p> <code>ms</code> </p> </li> <li> <p> <code>mt</code> </p> </li> <li> <p> <code>my</code> </p> </li> <li> <p> <code>nl</code> </p> </li> <li> <p> <code>no</code> </p> </li> <li> <p> <code>or</code> </p> </li> <li> <p> <code>pa</code> </p> </li> <li> <p> <code>pl</code> </p> </li> <li> <p> <code>pt</code> </p> </li> <li> <p> <code>ro</code> </p> </li> <li> <p> <code>ru</code> </p> </li> <li> <p> <code>sk</code> </p> </li> <li> <p> <code>sl</code> </p> </li> <li> <p> <code>sq</code> </p> </li> <li> <p> <code>sr</code> </p> </li> <li> <p> <code>sv</code> </p> </li> <li> <p> <code>ta</code> </p> </li> <li> <p> <code>te</code> </p> </li> <li> <p> <code>th</code> </p> </li> <li> <p> <code>tr</code> </p> </li> <li> <p> <code>uk</code> </p> </li> <li> <p> <code>uz</code> </p> </li> <li> <p> <code>vi</code> </p> </li> <li> <p> <code>zh</code> </p> </li> </ul>"
205+
}
206+
},
207+
"MapFeatureMode": {
208+
"base": null,
209+
"refs": {
210+
"GetStaticMapRequest$PointsOfInterests": "<p>Determines if the result image will display icons representing points of interest on the map.</p>"
211+
}
212+
},
187213
"MapStyle": {
188214
"base": null,
189215
"refs": {
@@ -213,7 +239,7 @@
213239
"StaticMapStyle": {
214240
"base": null,
215241
"refs": {
216-
"GetStaticMapRequest$Style": "<p>Style specifies the desired map style for the <code>Style</code> APIs.</p>"
242+
"GetStaticMapRequest$Style": "<p> <code>Style</code> specifies the desired map style.</p>"
217243
}
218244
},
219245
"String": {
@@ -275,7 +301,7 @@
275301
"ValidationExceptionReason": {
276302
"base": null,
277303
"refs": {
278-
"ValidationException$Reason": "<p>The field where thebb invalid entry was detected.</p>"
304+
"ValidationException$Reason": "<p>The field where the invalid entry was detected.</p>"
279305
}
280306
},
281307
"Variant": {

generator/ServiceModels/geo-maps/geo-maps-2020-11-19.endpoint-rule-set.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
}
329329
],
330330
"endpoint": {
331-
"url": "https://maps.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
331+
"url": "https://maps.geo.{Region}.{PartitionResult#dnsSuffix}/v2",
332332
"properties": {},
333333
"headers": {}
334334
},
@@ -371,7 +371,7 @@
371371
}
372372
],
373373
"endpoint": {
374-
"url": "https://maps.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
374+
"url": "https://maps.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
375375
"properties": {},
376376
"headers": {}
377377
},
@@ -414,7 +414,7 @@
414414
}
415415
],
416416
"endpoint": {
417-
"url": "https://maps.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
417+
"url": "https://maps.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2",
418418
"properties": {},
419419
"headers": {}
420420
},
@@ -457,7 +457,7 @@
457457
}
458458
],
459459
"endpoint": {
460-
"url": "https://maps.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
460+
"url": "https://maps.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
461461
"properties": {},
462462
"headers": {}
463463
},

generator/ServiceModels/geo-maps/geo-maps-2020-11-19.endpoint-tests.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
142142
"expect": {
143143
"endpoint": {
144-
"url": "https://maps.geo-fips.us-gov-west-1.us-gov.api.aws/v2"
144+
"url": "https://maps.geo-fips.us-gov-west-1.api.aws/v2"
145145
}
146146
},
147147
"params": {
@@ -154,7 +154,7 @@
154154
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
155155
"expect": {
156156
"endpoint": {
157-
"url": "https://maps.geo-fips.us-gov-west-1.us-gov.amazonaws.com/v2"
157+
"url": "https://maps.geo-fips.us-gov-west-1.amazonaws.com/v2"
158158
}
159159
},
160160
"params": {
@@ -167,7 +167,7 @@
167167
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
168168
"expect": {
169169
"endpoint": {
170-
"url": "https://maps.geo.us-gov-west-1.us-gov.api.aws/v2"
170+
"url": "https://maps.geo.us-gov-west-1.api.aws/v2"
171171
}
172172
},
173173
"params": {
@@ -180,7 +180,7 @@
180180
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
181181
"expect": {
182182
"endpoint": {
183-
"url": "https://maps.geo.us-gov-west-1.us-gov.amazonaws.com/v2"
183+
"url": "https://maps.geo.us-gov-west-1.amazonaws.com/v2"
184184
}
185185
},
186186
"params": {

0 commit comments

Comments
 (0)