LocationService / Client / get_map_style_descriptor

get_map_style_descriptor#

LocationService.Client.get_map_style_descriptor(**kwargs)#

Retrieves the map style descriptor from a map resource.

The style descriptor contains specifications on how features render on a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.

See also: AWS API Documentation

Request Syntax

response = client.get_map_style_descriptor(
    MapName='string',
    Key='string'
)
Parameters:
  • MapName (string) –

    [REQUIRED]

    The map resource to retrieve the style descriptor from.

  • Key (string) – The optional API key to authorize the request.

Return type:

dict

Returns:

Response Syntax

{
    'Blob': StreamingBody(),
    'ContentType': 'string',
    'CacheControl': 'string'
}

Response Structure

  • (dict) –

    • Blob (StreamingBody) –

      Contains the body of the style descriptor.

    • ContentType (string) –

      The style descriptor’s content type. For example, application/json.

    • CacheControl (string) –

      The HTTP Cache-Control directive for the value.

Exceptions