Class: EnumerateAttribute service:gmfEnumerateAttribute

gmf.EnumerateAttribute

new 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

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.