Skip to main content

GeoDataManager

geovisto-mapReadme | API


geovisto-map / GeoDataManager

Class: GeoDataManager

The class provides a basic implemention geographical data manager.

Author

Jiri Hynek

Extends

Implements

Constructors

new GeoDataManager()

new GeoDataManager(geoDataArray): GeoDataManager

Parameters

geoDataArray: IGeoData[]

Returns

GeoDataManager

Overrides

MapDomainArrayManager.constructor

Source

model/internal/geodata/GeoDataManager.ts:16

Properties

hierarchyEnabledStatus

private hierarchyEnabledStatus: boolean = false

Source

model/internal/geodata/GeoDataManager.ts:22


treesMap

private treesMap: Map\<string, HierarchyTree>

Source

model/internal/geodata/GeoDataManager.ts:23

Methods

add()

add(domains): void

It adds a domain to the list of domains.

Override this function.

Parameters

domains: IGeoData

Returns

void

Implementation of

IGeoDataManager.add

Inherited from

MapDomainArrayManager.add

Source

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


enableHierarchy()

enableHierarchy(enabled): void

Parameters

enabled: boolean

Returns

void

Implementation of

IHierarchyManagerInterface.enableHierarchy

Source

model/internal/geodata/GeoDataManager.ts:25


getActiveByTree()

getActiveByTree(domainName): string[]

Parameters

domainName: string

Returns

string[]

Implementation of

IHierarchyManagerInterface.getActiveByTree

Source

model/internal/geodata/GeoDataManager.ts:99


getChildsFromTree()

getChildsFromTree(domainName, objectID): string[]

Parameters

domainName: string

objectID: string

Returns

string[]

Implementation of

IHierarchyManagerInterface.getChildsFromTree

Source

model/internal/geodata/GeoDataManager.ts:107


getDefault()

getDefault(): undefined | IGeoData

The function returns the first domain of the array.

Returns

undefined | IGeoData

Implementation of

IGeoDataManager.getDefault

Inherited from

MapDomainArrayManager.getDefault

Source

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


getDomain()

getDomain(name): undefined | IGeoData

The function returns map domains of given type.

Parameters

name: string

Returns

undefined | IGeoData

Implementation of

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

IGeoDataManager.getDomainNames

Inherited from

MapDomainArrayManager.getDomainNames

Source

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


getDomains()

getDomains(): IGeoData[]

The function returns available map domains.

Returns

IGeoData[]

Implementation of

IGeoDataManager.getDomains

Inherited from

MapDomainArrayManager.getDomains

Source

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


getFeatures()

getFeatures(name, types): any

Parameters

name: string

types: string[]

Returns

any

Implementation of

IHierarchyManagerInterface.getFeatures

Source

model/internal/geodata/GeoDataManager.ts:37


isEmpty()

isEmpty(): boolean

The function returns true if size() is 0.

Returns

boolean

Implementation of

IGeoDataManager.isEmpty

Inherited from

MapDomainArrayManager.isEmpty

Source

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


isHierarchyEnabled()

isHierarchyEnabled(): boolean

Returns

boolean

Implementation of

IHierarchyManagerInterface.isHierarchyEnabled

Source

model/internal/geodata/GeoDataManager.ts:29


isHierarchyEnabledForDomain()

isHierarchyEnabledForDomain(domainName): boolean

Parameters

domainName: string

Returns

boolean

Implementation of

IHierarchyManagerInterface.isHierarchyEnabledForDomain

Source

model/internal/geodata/GeoDataManager.ts:33


remove()

remove(domains): void

It removes a domain from the list of domains.

Parameters

domains: IGeoData

Returns

void

Implementation of

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

IGeoDataManager.removeByName

Inherited from

MapDomainArrayManager.removeByName

Source

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


setTree()

setTree(domainName, nodes, aggregationEnabled): void

Parameters

domainName: string

nodes: [string, string | boolean, number][]

aggregationEnabled: boolean

Returns

void

Implementation of

IHierarchyManagerInterface.setTree

Source

model/internal/geodata/GeoDataManager.ts:72


size()

size(): number

The function returns number of domains.

Returns

number

Implementation of

IGeoDataManager.size

Inherited from

MapDomainArrayManager.size

Source

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


startTree()

startTree(domainName, zoom): void

Parameters

domainName: string

zoom: number

Returns

void

Implementation of

IHierarchyManagerInterface.startTree

Source

model/internal/geodata/GeoDataManager.ts:80


treeAggregationFlag()

treeAggregationFlag(domainName): boolean

Parameters

domainName: string

Returns

boolean

Implementation of

IHierarchyManagerInterface.treeAggregationFlag

Source

model/internal/geodata/GeoDataManager.ts:92


updateTrees()

updateTrees(zoom): void

Parameters

zoom: number

Returns

void

Implementation of

IHierarchyManagerInterface.updateTrees

Source

model/internal/geodata/GeoDataManager.ts:86