new module:SavedFilters($rootScope)
The GeoMapFish service responsible of storing filters that can be applied to data sources. A filter consists of:
- a condition
- a list of directed rules
- a list of custom rules
- a data source
- a name
The filters are saved in the browser local storage, if available. Otherwise, they are kept in this service for the duration of the visit.
Parameters:
Name | Type | Description |
---|---|---|
$rootScope |
!angular.Scope | Angular rootScope. |
Members
currentDataSourceId
currentDataSourceItems
items
Methods
indexOfItem(name, id)
Search for an item using a given name and data source id. Returns the index if it exists, otherwise -1 is returned.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name. |
id |
number | Data source id. |
Returns:
number
The index of the item, if it exists.
remove(item)
Parameters:
Name | Type | Description |
---|---|---|
item |
!gmf.filters.SavedFilters.Item | Item. |
save(item)
Parameters:
Name | Type | Description |
---|---|---|
item |
!gmf.filters.SavedFilters.Item | Item. |