Skip to main content

MapFiltersManager

geovisto-mapReadme | API


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

MapFiltersManager

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

IMapFilterManager.add

Inherited from

MapDomainArrayManager.add

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

IMapFilterManager.createRule

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

IMapData

Implementation of

IMapFilterManager.filterData

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

IMapFilterManager.getDefault

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

IMapFilterManager.getDomain

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

IMapFilterOperation[]

Implementation of

IMapFilterManager.getDomains

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

IMapFilterManager.isEmpty

Inherited from

MapDomainArrayManager.isEmpty

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

IMapFilterManager.remove

Inherited from

MapDomainArrayManager.remove

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

Implementation of

IMapFilterManager.size

Inherited from

MapDomainArrayManager.size

Source

model/internal/domain/generic/MapDomainArrayManager.ts:38