MapFiltersManager
geovisto-map / MapFiltersManager
Class: MapFiltersManager
This class provide functions for using filters.
Author
Jiri Hynek
Extends
Implements
Constructors
new MapFiltersManager()
new MapFiltersManager(
filterOperations
):MapFiltersManager
Parameters
• filterOperations: IMapFilterOperation
[]
Returns
Overrides
MapDomainArrayManager
.constructor
Source
model/internal/filter/basic/MapFiltersManager.ts:17
Methods
add()
add(
domains
):void
It adds a domain to the list of domains.
Override this function.
Parameters
• domains: IMapFilterOperation
Returns
void
Implementation of
Inherited from
Source
model/internal/domain/generic/MapDomainArrayManager.ts:56
createRule()
createRule(
dataDomain
,opName
,pattern
):null
|IMapFilterRule
The function creates a new filter rule using given operation label. If operation does not exists it returns null.
Parameters
• dataDomain: IMapDataDomain
• opName: string
• pattern: string
Returns
null
| IMapFilterRule
Implementation of
Source
model/internal/filter/basic/MapFiltersManager.ts:29
filterData()
filterData(
dataManager
,dataRecords
,filterRules
):IMapData
Takes a list of data and applies the given filter rules. Returns a new list of the references to filtered data items.
TODO: define data records type
Parameters
• dataManager: IMapDataManager
• dataRecords: IMapData
• filterRules: IMapFilterRule
[]
Returns
Implementation of
Source
model/internal/filter/basic/MapFiltersManager.ts:47
getDefault()
getDefault():
undefined
|IMapFilterOperation
The function returns the first domain of the array.
Returns
undefined
| IMapFilterOperation
Implementation of
Inherited from
MapDomainArrayManager
.getDefault
Source
model/internal/domain/generic/MapDomainArrayManager.ts:30
getDomain()
getDomain(
name
):undefined
|IMapFilterOperation
The function returns map domains of given type.
Parameters
• name: string
Returns
undefined
| IMapFilterOperation
Implementation of
Inherited from
MapDomainArrayManager
.getDomain
Source
model/internal/domain/generic/MapDomainArrayManager.ts:99
getDomainNames()
getDomainNames():
string
[]
Help function which returns the list of domain string labels (map domain types).
Returns
string
[]
Implementation of
IMapFilterManager
.getDomainNames
Inherited from
MapDomainArrayManager
.getDomainNames
Source
model/internal/domain/generic/MapDomainArrayManager.ts:83
getDomains()
getDomains():
IMapFilterOperation
[]
The function returns available map domains.
Returns
Implementation of
Inherited from
MapDomainArrayManager
.getDomains
Source
model/internal/domain/generic/MapDomainArrayManager.ts:23
isEmpty()
isEmpty():
boolean
The function returns true if size() is 0.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/domain/generic/MapDomainArrayManager.ts:45
remove()
remove(
domains
):void
It removes a domain from the list of domains.
Parameters
• domains: IMapFilterOperation
Returns
void
Implementation of
Inherited from
Source
model/internal/domain/generic/MapDomainArrayManager.ts:65
removeByName()
removeByName(
id
):void
It removes a domain from the list of domains.
Override this function.
Parameters
• id: string
Returns
void
Implementation of
IMapFilterManager
.removeByName
Inherited from
MapDomainArrayManager
.removeByName
Source
model/internal/domain/generic/MapDomainArrayManager.ts:76
size()
size():
number
The function returns number of domains.
Returns
number