HierarchyDomain
geovisto-map / HierarchyDomain
Class: HierarchyDomain
Holds everything about domais hierarchy
Authorβ
VojtΔch MalΓ½
Implementsβ
Constructorsβ
new HierarchyDomain()β
new HierarchyDomain(
name
):HierarchyDomain
Parametersβ
β’ name: string
Returnsβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:28
Propertiesβ
aggregationEnabledβ
aggregationEnabled:
boolean
=false
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:24
cachedβ
private
cached:boolean
=false
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:22
levelsMapβ
private
levelsMap:Map
\<number
,HierarchyZoomLevel
>
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:13
lowestChildMapβ
lowestChildMap:
Map
\<string
,string
[]>
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:20
nameβ
private
name:string
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:11
nodesβ
nodes: [
string
,string
|boolean
,number
][] =[]
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:26
parentChildβ
private
parentChild: [string
,string
][] =[]
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:16
parentChildMapβ
private
parentChildMap:Map
\<string
,string
[]>
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:15
zoomLevelsβ
private
zoomLevels:number
[] =[]
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:18
Methodsβ
addToLevel()β
addToLevel(
level
,id
):void
Adds new object to certain zoom level
Parametersβ
β’ level: number
Zoom level
β’ id: string
| number
Id of added object.
Returnsβ
void
Implementation ofβ
IHierarchyToolDomain
.addToLevel
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:77
getHierarchyMap()β
getHierarchyMap():
Map
\<string
,string
[]>
Returnes lowest child map.
Returnsβ
Map
\<string
, string
[]>
Implementation ofβ
IHierarchyToolDomain
.getHierarchyMap
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:93
getLevelByZoom()β
getLevelByZoom(
zoom
):undefined
|HierarchyZoomLevel
Based on zoom level returns object of hierarchyZoomLevel
Parametersβ
β’ zoom: number
Returnsβ
undefined
| HierarchyZoomLevel
Implementation ofβ
IHierarchyToolDomain
.getLevelByZoom
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:39
getName()β
getName():
string
Returns name of a domain.
Returnsβ
string
Implementation ofβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:176
getNodes()β
getNodes(): [
string
,string
|boolean
,number
][]
Return node array where: [childID, parentID or True if parent, ZoomLevel of change]
Returnsβ
[string
, string
| boolean
, number
][]
Implementation ofβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:32
getParentChild()β
getParentChild(): [
string
,string
][]
Get parent child array
Returnsβ
[string
, string
][]
Implementation ofβ
IHierarchyToolDomain
.getParentChild
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:160
mapResolveGet()β
private
mapResolveGet(toResolve
):string
[]
Resolve and get all lowest childrens of passed objects.
Parametersβ
β’ toResolve: string
[]
Ids of objects to resolve
Returnsβ
string
[]
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:114
setParentChild()β
setParentChild(
parentChild
):void
Set parentChild array
Parametersβ
β’ parentChild: [string
, string
][]
Returnsβ
void
Implementation ofβ
IHierarchyToolDomain
.setParentChild
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:144
setParentChildMap()β
setParentChildMap(
map
):void
Set parentChild Map
Parametersβ
β’ map: Map
\<string
, string
[]>
Returnsβ
void
Implementation ofβ
IHierarchyToolDomain
.setParentChildMap
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyDomain.ts:152
setZoomLevels()β
setZoomLevels(
zoomLevels
):void
Sets level of all defined zoom levels
Parametersβ
β’ zoomLevels: number
[]
Returnsβ
void
Implementation ofβ
IHierarchyToolDomain
.setZoomLevels