Skip to content

Profectus / data/common / createLayerTreeNode

Function: createLayerTreeNode() ​

createLayerTreeNode<T>(optionsFunc): any

Lazily creates a tree node that's associated with a specific layer, with the given options.

Type Parameters ​

• T extends LayerTreeNodeOptions

Parameters ​

optionsFunc ​

() => T

A function that returns the options object for this tree node.

Returns ​

any

Defined in ​

profectus/src/data/common.tsx:204