Skip to main content

sprites

Creates, updates, deletes, gets or lists a sprites resource.

Overview

Namesprites
TypeResource
Idaws.geo_maps.sprites

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blobstring (byte)The body of the sprite sheet or JSON offset file (image/png or application/json, depending on input).
cache_controlstringHeader that instructs caching configuration for the client.
content_typestringHeader that represents the format of the response. The response returns the following as the HTTP body.
e_tagstringThe sprite's Etag.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_spritesselectfile_name, style, color_scheme, variant, regionGetSprites returns the map's sprites. For more information, see Style iconography with sprites in the Amazon Location Service Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
color_schemestringSets the color tone for the map sprites, such as dark and light. Example: Light Default value: Light Valid values for ColorScheme are case sensitive.
file_namestringSprites API: The name of the sprite file to retrieve, following pattern sprites(@2x)?.(png|json). Example: sprites.png
regionstringAWS region (default: us-east-1)
stylestringStyle specifies the desired map style for the Sprites APIs.
variantstringOptimizes map styles for specific use case or industry. You can choose allowed variant only with Standard map style. Example: Default Valid values for Variant are case sensitive.

SELECT examples

GetSprites returns the map's sprites. For more information, see Style iconography with sprites in the Amazon Location Service Developer Guide.

SELECT
blob,
cache_control,
content_type,
e_tag
FROM aws.geo_maps.sprites
WHERE file_name = '{{ file_name }}' -- required
AND style = '{{ style }}' -- required
AND color_scheme = '{{ color_scheme }}' -- required
AND variant = '{{ variant }}' -- required
AND region = '{{ region }}' -- required
;