GetSprites - Amazon Location Service

GetSprites

GetSprites returns the map's sprites.

Request Syntax

GET /styles/Style/ColorScheme/Variant/sprites/FileName HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ColorScheme

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.

Example: Light

Default value: Light

Note

Valid values for ColorScheme are case sensitive.

Valid Values: Light | Dark

Required: Yes

FileName

Sprites API: The name of the sprite file to retrieve, following pattern sprites(@2x)?\.(png|json).

Example: sprites.png

Pattern: sprites(@2x)?\.(png|json)

Required: Yes

Style

Style specifies the desired map style for the Sprites APIs.

Valid Values: Standard | Monochrome | Hybrid | Satellite

Required: Yes

Variant

Optimizes map styles for specific use case or industry. You can choose allowed variant only with Standard map style.

Example: Default

Note

Valid values for Variant are case sensitive.

Valid Values: Default

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-Type: ContentType Cache-Control: CacheControl ETag: ETag Blob

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The response returns the following HTTP headers.

CacheControl

Header that instructs caching configuration for the client.

ContentType

Header that represents the format of the response. The response returns the following as the HTTP body.

ETag

The sprite's Etag.

The response returns the following as the HTTP body.

Blob

The body of the sprite sheet or JSON offset file (image/png or application/json, depending on input).

Errors

For information about the errors that are common to all actions, see Common Errors.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: