Namespace: TileService

TileService

A utility namespace that provides tile service REST functionality.

Methods

staticTileService.getTileImage(layerId, level, x, y, params, success)

Get a tile rendered as an image. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
level integer The zoom level.
x integer The tile x index.
y integer The tile y index.
params Object The query parameter configuration overrides (optional).
success function The callback function executed after success received (optional).

staticTileService.getTileJSON(layerId, level, x, y, params, success)

Get a tile worth of data in JSON format. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
level integer The zoom level.
x integer The tile x index.
y integer The tile y index.
params Object The query parameter configuration overrides (optional).
success function The callback function executed after success received (optional).