Namespace: LayerService

LayerService

A utility namespace that provides layer service REST functionality.

Methods

staticLayerService.getLayer(layerId, success)

Request a specific layer from the server. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
success function The callback function executed after success received (optional).

staticLayerService.getLayers(success)

Request all layers from the server. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
success function The callback function executed after success received (optional).

staticLayerService.getLayerState(layerId, stateId, success)

Get a configuration state for a layer on the server by state id. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
stateId String The state identification string.
success function The callback function executed after success received (optional).

staticLayerService.getLayerStates(layerId, success)

Get all configuration states for a layer on the server. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
success function The callback function executed after success received (optional).

staticLayerService.saveLayerState(layerId, params, success)

Store a configuration state on the server. Upon success, will execute success callback function passing the resulting object as first argument.
Name Type Description
layerId String The layer identification string.
params Object The parameter configuration overrides (optional).
success function The callback function executed after success received (optional).