Skip to main content

IHierarchyToolDomain

geovisto-map β€’ Readme | API


geovisto-map / IHierarchyToolDomain

Interface: IHierarchyToolDomain

Interface for one domain hierarchy definiton. Used by HierarchyToolManager.

Author​

VojtΔ›ch MalΓ½

Methods​

addToLevel()​

addToLevel(zoom, id): void

Add ID to hierarchy ply based on zoom level.

Parameters​

β€’ zoom: number

β€’ id: string | number

Returns​

void

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:27


getHierarchyMap()​

getHierarchyMap(): Map\<string, string[]>

Returns hierarchy Map.

Returns​

Map\<string, string[]>

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:32


getLevelByZoom()​

getLevelByZoom(zoom): undefined | IHierarchyToolZoomLevel

Returns zoom ply based on requested zoom level number. Undefined if that zoom level doesn't exists.

Parameters​

β€’ zoom: number

Returns​

undefined | IHierarchyToolZoomLevel

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:20


getName()​

getName(): string

Get name of Domain.

Returns​

string

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:53


getNodes()​

getNodes(): [string, string | boolean, number][]

Return node array where: [childID, parentID or True if parent, ZoomLevel of change]

Returns​

[string, string | boolean, number][]

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:13


getParentChild()​

getParentChild(): [string, string][]

Returns​

[string, string][]

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:46


setParentChild()​

setParentChild(parentChild): void

Sets new parent child arrry of domain.

Parameters​

β€’ parentChild: [string, string][]

Returns​

void

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:38


setParentChildMap()​

setParentChildMap(map): void

Sets new parent child map of domain.

Parameters​

β€’ map: Map\<string, string[]>

Returns​

void

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:44


setZoomLevels()​

setZoomLevels(zoomLevels): void

Parameters​

β€’ zoomLevels: number[]

Returns​

void

Source​

tools/hierarchy/model/types/tool/IHierarchyToolDomain.ts:48