MCPcopy Create free account
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/plugins/treelayercontrol.py:137–163  ·  view source on GitHub ↗
(
        self,
        base_tree: Union[dict, list, None] = None,
        overlay_tree: Union[dict, list, None] = None,
        closed_symbol: str = "+",
        opened_symbol: str = "-",
        space_symbol: str = " ",
        selector_back: bool = False,
        named_toggle: bool = False,
        collapse_all: str = "",
        expand_all: str = "",
        label_is_selector: str = "both",
        **kwargs
    )

Source from the content-addressed store, hash-verified

135 )
136
137 def __init__(
138 self,
139 base_tree: Union[dict, list, None] = None,
140 overlay_tree: Union[dict, list, None] = None,
141 closed_symbol: str = "+",
142 opened_symbol: str = "-",
143 space_symbol: str = " ",
144 selector_back: bool = False,
145 named_toggle: bool = False,
146 collapse_all: str = "",
147 expand_all: str = "",
148 label_is_selector: str = "both",
149 **kwargs
150 ):
151 super().__init__()
152 self._name = "TreeLayerControl"
153 kwargs["closed_symbol"] = closed_symbol
154 kwargs["opened_symbol"] = opened_symbol
155 kwargs["space_symbol"] = space_symbol
156 kwargs["selector_back"] = selector_back
157 kwargs["named_toggle"] = named_toggle
158 kwargs["collapse_all"] = collapse_all
159 kwargs["expand_all"] = expand_all
160 kwargs["label_is_selector"] = label_is_selector
161 self.options = remove_empty(**kwargs)
162 self.base_tree = base_tree
163 self.overlay_tree = overlay_tree

Callers

nothing calls this directly

Calls 1

remove_emptyFunction · 0.90

Tested by

no test coverage detected