Skip to content

opened_symbol option in TreeLayerControl not functioning #1980

Closed
@Doyley1

Description

@Doyley1

The opened_symbol option as part of TreeLayerControl is not functioning correctly due to a typo in treelayercontrol.py, this will mean the default '-' will always show no matter the value you put in this option.

In treelayercontrol.py in line 151:

super().__init__()
self._name = "TreeLayerControl"
kwargs["closed_symbol"] = closed_symbol
kwargs["openened_symbol"] = opened_symbol
kwargs["space_symbol"] = space_symbol
kwargs["selector_back"] = selector_back
kwargs["named_toggle"] = named_toggle
kwargs["collapse_all"] = collapse_all
kwargs["expand_all"] = expand_all
kwargs["label_is_selector"] = label_is_selector
self.options = parse_options(**kwargs)
self.base_tree = base_tree
self.overlay_tree = overlay_tree

Instead of "openened_symbol" it should be "opened_symbol"

Environment:

  • folium version 0.17.0

Workaround
Adjust the treelayercontrol.py file to be "opened_symbol" in the meantime

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue describing unexpected or malicious behaviourpluginThis issue/PR is about an existing or new plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions