Namespace: LegendService

LegendService

A utility namespace that provides legend service REST functionality.

Methods

staticLegendService.getEncodedImage(layerId, params, success)

Get an encoded image string representing the rendering legend. Upon success, will execute success callback function passing the resulting string as first argument.
Name Type Description
layerId String The layer identification string.
params Object The query parameter configuration overrides (optional).
success function The callback function executed after success received (optional).

staticLegendService.getImage(layerId, params, success)

Get a png image representing the rendering legend.
Name Type Description
layerId String The layer identification string.
params Object The query parameter configuration overrides (optional).
success function The callback function executed after success received (optional).