Hierarchy

  • LayertreeController

Properties

dataSource_: DataSource
depth: number
isRoot: boolean
layer: LayerGroup | Layer<Source, LayerRenderer<any>>
listenersExpr: string
map: Map
node: any
nodelayerExpr: string
properties: Object
rootScope_: IScope
state_: string
uid: string

Methods

  • Return the current state, calculate on all its children recursively.

    Returns

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

    Returns string

  • Returns

    dataSource The data source bound to this layer tree controller.

    Returns DataSource

  • Refresh the state of this treeCtrl based on it's children value. The call its parent to do the same.

    Parameters

    • Optional opt_onChild: LayertreeController

      Child tree controller that had its state changed to 'on'.

    • Optional opt_broadcast: boolean

      Broadcast.

    Returns void

  • Parameters

    • dataSource: DataSource

      Data source or null.

    Returns 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'.

    • Optional opt_broadcast: boolean

      Broadcast.

    Returns void

  • Recursive method to traverse the layertree controller graph.

    Returns

    whether to stop traversing.

    Parameters

    • visitor: Visitor

      A visitor called for each node.

    Returns boolean

Generated using TypeDoc