Options
All
  • Public
  • Public/Protected
  • All
Menu

A node in the layer list hierarchy. In addition to layer list items, the layer list itself is considered to be a node, specifically it acts as the root node in the hierarchy.

Hierarchy

Index

Constructors

constructor

  • Initializes a new instance of the LayerListNode class.

    Parameters

    • Optional id: string

      The unique string identifier for this node

    • Optional parentNode: LayerListNode

      This node's parent node if any

    Returns LayerListNode

Properties

_displayItemBindingToken

_displayItemBindingToken: string

Binding token for LayerListItem.displayItem (if any), used by the LayerListItemCollection class.

_visibilityBindingToken

_visibilityBindingToken: string

Visibility binding token (if any), used by the LayerListItemCollection class to manage visibilities

children

A LayerListItemCollection object, representing the current node's children

id

id: Observable<string>

The unique identifier for this layer list item. Will be "GCXLayerListRootNode-[random string]" if this is the root node.

parent

The current node's parent - if any

Methods

getAncestors

  • Gets the collection of ancestor nodes, ordered from nearest to farthest.

    Returns LayerListNode[]

getDescendants

  • Gets all of this node's descendant items, in depth-first traversal order.

    Returns LayerListItem[]

getRoot

  • Gets the root node in the layer list hierarchy.

    Returns LayerListNode

getSelfAndAncestors

  • Gets this node, as well as it's ancestors, ordered from nearest to farthest

    Returns LayerListNode[]

getSelfAndDescendants

  • Gets this node, as well as it's descendants, in depth-first traversal order

    Returns LayerListNode[]

getSiblings

  • Gets all of this node's siblings, in the order that they appear in the layer list.

    Parameters

    • Optional includeSelf: boolean

    Returns LayerListNode[]