LocationServiceMapsV2 / Client / get_style_descriptor
get_style_descriptor¶
- LocationServiceMapsV2.Client.get_style_descriptor(**kwargs)¶
GetStyleDescriptorreturns information about the style.For more information, see Style dynamic maps in the Amazon Location Service Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.get_style_descriptor( Style='Standard'|'Monochrome'|'Hybrid'|'Satellite', ColorScheme='Light'|'Dark', PoliticalView='string', Terrain='Hillshade'|'Terrain3D', ContourDensity='Low'|'Medium'|'High', Traffic='All'|'Congestion', TravelModes=[ 'Transit'|'Truck', ], Buildings='Buildings3D', PoiDensity='Off'|'VerySparse'|'Sparse'|'Default'|'Dense'|'VeryDense', PoiCategories=[ 'FoodAndDrink'|'Entertainment'|'SightsAndMuseums'|'Transportation'|'Accommodations'|'LeisureAndOutdoor'|'Shopping'|'BusinessAndServices'|'FacilitiesAndBuildings', ], Key='string' )
- Parameters:
Style (string) –
[REQUIRED]
Style specifies the desired map style. For GrabMaps customers,
ap-southeast-1andap-southeast-5regions support only theStandardandMonochromevalues.ColorScheme (string) –
Sets the color tone for the map, such as dark and light.
Example:
LightDefault value:
LightNote
Valid values for ColorScheme are case sensitive.
PoliticalView (string) –
Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.The following political views are currently supported:
ARG: Argentina’s view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich IslandsEGY: Egypt’s view on Bir TawilIND: India’s view on Gilgit-BaltistanKEN: Kenya’s view on the Ilemi TriangleMAR: Morocco’s view on Western SaharaRUS: Russia’s view on CrimeaSDN: Sudan’s view on the Halaib TriangleSRB: Serbia’s view on Kosovo, Vukovar, and Sarengrad IslandsSUR: Suriname’s view on the Courantyne Headwaters and Lawa HeadwatersSYR: Syria’s view on the Golan HeightsTUR: Turkey’s view on Cyprus and Northern CyprusTZA: Tanzania’s view on Lake MalawiURY: Uruguay’s view on Rincon de ArtigasVNM: Vietnam’s view on the Paracel Islands and Spratly Islands
Terrain (string) –
Adjusts how physical terrain details are rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.The following terrain styles are currently supported:
Hillshade: Displays the physical terrain details through shading and highlighting of elevation change and geographic features.Terrain3D: Displays physical terrain details and elevations as a three-dimensional model.
Hillshadeis valid only for theStandardandMonochromemap styles.ContourDensity (string) –
Displays the shape and steepness of terrain features using elevation lines. The density value controls how densely the available contour line information is rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite.Traffic (string) –
Displays real-time traffic information overlay on map, such as incident events and flow events. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite.TravelModes (list) –
Renders additional map information relevant to selected travel modes. Information for multiple travel modes can be displayed simultaneously, although this increases the overall information density rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite.(string) –
Buildings (string) –
Adjusts how building details are rendered on the map.
The following building styles are currently supported:
Buildings3D: Displays buildings as three-dimensional extrusions on the map.
Buildings3Dis valid only for theStandardandMonochromemap styles.PoiDensity (string) –
Controls how densely points of interest are rendered on the map. The density value controls the zoom level at which each category of points of interest appears, and how quickly less prominent points of interest are revealed as you zoom in. Denser values display more points of interest at lower zoom levels.
Use
Offto hide all points of interest. When you omit this parameter, the map renders atDefaultdensity.Note
The difference between density values is most noticeable at mid-range zoom levels. At high zoom levels, all density values converge on displaying every available point of interest.
This parameter is valid only for the
StandardandHybridmap styles. Inap-southeast-1andap-southeast-5regions for GrabMaps customers, this parameter is valid only for theStandardmap style.PoiCategories (list) –
Renders only the specified categories of points of interest. When you omit this parameter, the map renders all categories.
The following categories are currently supported:
FoodAndDrinkEntertainmentSightsAndMuseumsTransportationAccommodationsLeisureAndOutdoorShoppingBusinessAndServicesFacilitiesAndBuildings
Specify each category as a separate
poi-categoriesquery parameter. Duplicate values are rejected.Note
This parameter has no effect when
poi-densityis set toOff, which hides all points of interest regardless of category.This parameter is valid only for the
StandardandHybridmap styles. Inap-southeast-1andap-southeast-5regions for GrabMaps customers, this parameter is valid only for theStandardmap style.(string) –
Key (string) – Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
- Return type:
dict
- Returns:
Response Syntax
{ 'Blob': StreamingBody(), 'ContentType': 'string', 'CacheControl': 'string', 'ETag': 'string' }
Response Structure
(dict) –
Blob (
StreamingBody) –This Blob contains the body of the style descriptor which is in application/json format.
ContentType (string) –
Header that represents the format of the response. The response returns the following as the HTTP body.
CacheControl (string) –
Header that instructs caching configuration for the client.
ETag (string) –
The style descriptor’s Etag.