Skip to content

/AWS1/CL_GEM=>GETTILE()

About GetTile

GetTile returns a tile. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.

Method Signature

IMPORTING

Required arguments:

iv_tileset TYPE /AWS1/GEMTILESET /AWS1/GEMTILESET

Specifies the desired tile set.

Valid Values: raster.satellite | vector.basemap

iv_z TYPE /AWS1/GEMSTRING /AWS1/GEMSTRING

The zoom value for the map tile.

iv_x TYPE /AWS1/GEMSTRING /AWS1/GEMSTRING

The X axis value for the map tile. Must be between 0 and 19.

iv_y TYPE /AWS1/GEMSTRING /AWS1/GEMSTRING

The Y axis value for the map tile.

Optional arguments:

iv_key TYPE /AWS1/GEMAPIKEY /AWS1/GEMAPIKEY

Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

RETURNING

oo_output TYPE REF TO /aws1/cl_gemgettileresponse /AWS1/CL_GEMGETTILERESPONSE

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->/aws1/if_gem~gettile(
  iv_key = |string|
  iv_tileset = |string|
  iv_x = |string|
  iv_y = |string|
  iv_z = |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( ).
  lv_string = lo_result->get_pricingbucket( ).
ENDIF.