MCPcopy
hub / github.com/gee-community/geemap / new_tree_node

Function new_tree_node

geemap/coreutils.py:121–133  ·  view source on GitHub ↗

Returns node JSON for an interactive representation of an EE ComputedObject.

(
    label: str,
    children: list[dict[str, Any]] | None = None,
    expanded: bool = False,
    top_level: bool = False,
)

Source from the content-addressed store, hash-verified

119
120
121def new_tree_node(
122 label: str,
123 children: list[dict[str, Any]] | None = None,
124 expanded: bool = False,
125 top_level: bool = False,
126) -> dict[str, Any]:
127 """Returns node JSON for an interactive representation of an EE ComputedObject."""
128 return {
129 "label": label,
130 "children": children or [],
131 "expanded": expanded,
132 "topLevel": top_level,
133 }
134
135
136def _order_items(item_dict: dict[str, Any], ordering_list: list[str]) -> dict[str, Any]:

Callers 2

_generate_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected