Class: module:EnumerateAttribute service:gmfEnumerateAttribute

gmf.editing.module:EnumerateAttribute.gmf.editing.module:EnumerateAttribute

new module:EnumerateAttribute($http, gmfLayersUrl)

The EnumerateAttribute is responsible of fetching all possible of a given attribute of a given data source (gmf layer).

Parameters:
Name Type Description
$http angular.$http

Angular $http service.

gmfLayersUrl string

Url to the GeoMapFish layers service.

Methods

getAttributeValues(dataSource, attribute)

Parameters:
Name Type Description
dataSource gmf.datasource.OGC

Data source.

attribute string

Attribute name.

Returns:

handleGetAttributeValues_(resp)

Parameters:
Name Type Description
resp angular.$http.Response

Ajax response.

Returns:
Array.

List of the attribute values.