Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LayertreeController

Index

Properties

children

dataSource_

dataSource_: DataSource

depth

depth: number

isRoot

isRoot: boolean

layer

layer: LayerGroup | Layer<Source, any>

listenersExpr

listenersExpr: string

map

map: Map

node

node: any

nodelayerExpr

nodelayerExpr: string

parent

properties

properties: Object

rootScope_

rootScope_: IScope

state_

state_: string

uid

uid: string

Methods

getCalculateState

  • getCalculateState(): string
  • Return the current state, calculate on all its children recursively.

    Returns string

    'on', 'off' or 'indeterminate'.

getDataSource

  • getDataSource(): DataSource

getSetActive

  • getSetActive(val: boolean): boolean

getState

  • getState(): string

refreshState

setDataSource

  • setDataSource(dataSource: DataSource): void

setState

  • setState(state: string, opt_broadcast: boolean): void
  • Set the state of this treeCtrl. Update its children with its value and then ask its parent to refresh its state.

    Parameters

    • state: string

      'on' or 'off'.

    • opt_broadcast: boolean

    Returns void

setStateInternal_

  • setStateInternal_(state: string): void

traverseDepthFirst

  • traverseDepthFirst(visitor: Visitor): boolean
  • Recursive method to traverse the layertree controller graph.

    Parameters

    • visitor: Visitor

      A visitor called for each node.

    Returns boolean

    whether to stop traversing.

Generated using TypeDoc