Skip to main content

MapThemesManager

geovisto-mapReadme | API


geovisto-map / MapThemesManager

Class: MapThemesManager

This class provide functions for using themes.

Author

Jiri Hynek

Extends

Implements

Constructors

new MapThemesManager()

new MapThemesManager(themes): MapThemesManager

Parameters

themes: IMapTheme[]

Returns

MapThemesManager

Overrides

MapDomainArrayManager.constructor

Source

tools/themes/model/internal/theme/basic/MapThemesManager.ts:16

Methods

add()

add(domains): void

It adds a domain to the list of domains.

Override this function.

Parameters

domains: IMapTheme

Returns

void

Implementation of

IMapThemesManager.add

Inherited from

MapDomainArrayManager.add

Source

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


getDefault()

getDefault(): undefined | IMapTheme

The function returns the default theme.

Returns

undefined | IMapTheme

Implementation of

IMapThemesManager.getDefault

Overrides

MapDomainArrayManager.getDefault

Source

tools/themes/model/internal/theme/basic/MapThemesManager.ts:23


getDomain()

getDomain(name): undefined | IMapTheme

The function returns map domains of given type.

Parameters

name: string

Returns

undefined | IMapTheme

Implementation of

IMapThemesManager.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

IMapThemesManager.getDomainNames

Inherited from

MapDomainArrayManager.getDomainNames

Source

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


getDomains()

getDomains(): IMapTheme[]

The function returns available map domains.

Returns

IMapTheme[]

Implementation of

IMapThemesManager.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

IMapThemesManager.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: IMapTheme

Returns

void

Implementation of

IMapThemesManager.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

IMapThemesManager.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

IMapThemesManager.size

Inherited from

MapDomainArrayManager.size

Source

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