Skip to main content

MapFilterOperation

geovisto-map • Readme | API


geovisto-map / MapFilterOperation

Class: MapFilterOperation

This class wraps a filter operation defined by constructor props.

Author​

Jiri Hynek

Extends​

Implements​

Constructors​

new MapFilterOperation()​

new MapFilterOperation(label, acceptFunction): MapFilterOperation

It creates a new filter operation.

Parameters​

• label: string

• acceptFunction

Returns​

MapFilterOperation

Overrides​

AbstractMapDomain.constructor

Source​

model/internal/filter/basic/MapFilterOperation.ts:27

Properties​

label​

private label: string

Source​

model/internal/filter/basic/MapFilterOperation.ts:11


match()​

match: (value, pattern) => boolean

It performs the filter operation which compare a value with a pattern.

Parameters​

• value: unknown

• pattern: unknown

Returns​

boolean

Implementation of​

IMapFilterOperation.match

Source​

model/internal/filter/basic/MapFilterOperation.ts:19

Methods​

getName()​

getName(): string

It returns a unique string label of the filter representing operator given by the parameter of constructor.

Returns​

string

Implementation of​

IMapFilterOperation.getName

Overrides​

AbstractMapDomain.getName

Source​

model/internal/filter/basic/MapFilterOperation.ts:36


toString()​

toString(): string

The string representation is equal to the name of the map domain.

Returns​

string

Inherited from​

AbstractMapDomain.toString

Source​

model/internal/domain/abstract/AbstractMapDomain.ts:18