/AWS1/IF_GEM=>GETSPRITES()¶
About GetSprites¶
GetSprites returns the map's sprites.
For more information, see Style iconography with sprites in the Amazon Location Service Developer Guide.
Method Signature¶
METHODS /AWS1/IF_GEM~GETSPRITES
IMPORTING
!IV_FILENAME TYPE /AWS1/GEMSTRING OPTIONAL
!IV_STYLE TYPE /AWS1/GEMMAPSTYLE OPTIONAL
!IV_COLORSCHEME TYPE /AWS1/GEMCOLORSCHEME OPTIONAL
!IV_VARIANT TYPE /AWS1/GEMVARIANT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gemgetspritesresponse
RAISING
/AWS1/CX_GEMCLIENTEXC
/AWS1/CX_GEMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_filename TYPE /AWS1/GEMSTRING /AWS1/GEMSTRING¶
SpritesAPI: The name of the sprite file to retrieve, following patternsprites(@2x)?.(png|json).Example:
sprites.png
iv_style TYPE /AWS1/GEMMAPSTYLE /AWS1/GEMMAPSTYLE¶
Style specifies the desired map style for the
SpritesAPIs.
iv_colorscheme TYPE /AWS1/GEMCOLORSCHEME /AWS1/GEMCOLORSCHEME¶
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:
LightDefault value:
LightValid values for ColorScheme are case sensitive.
iv_variant TYPE /AWS1/GEMVARIANT /AWS1/GEMVARIANT¶
Optimizes map styles for specific use case or industry. You can choose allowed variant only with Standard map style.
Example:
DefaultValid values for Variant are case sensitive.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gemgetspritesresponse /AWS1/CL_GEMGETSPRITESRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getsprites(
iv_colorscheme = |string|
iv_filename = |string|
iv_style = |string|
iv_variant = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_blob = lo_result->get_blob( ).
lv_string = lo_result->get_contenttype( ).
lv_string = lo_result->get_cachecontrol( ).
lv_string = lo_result->get_etag( ).
ENDIF.