Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: new option in addGroupedLayersControl() #229

Open
aloboa opened this issue Sep 30, 2024 · 1 comment
Open

Feature request: new option in addGroupedLayersControl() #229

aloboa opened this issue Sep 30, 2024 · 1 comment

Comments

@aloboa
Copy link

aloboa commented Sep 30, 2024

Using addGroupedLayersControl(), I can set the current groupedLayersControlOptions()
in this way:

options = groupedLayersControlOptions(groupCheckboxes = TRUE,
                                        collapsed = FALSE,
                                        autoZIndex = TRUE,
                                        groupsCollapsable = FALSE,
                                        sortLayers = FALSE,
                                        sortGroups = FALSE,
                                        sortBaseLayers = FALSE,
                                        exclusiveGroups = "Miscelanea")) %>%

and get:

collapsedFALSE_groupsCollapsableFALSE

or:

options = groupedLayersControlOptions(groupCheckboxes = TRUE,
                                        collapsed = FALSE,
                                        autoZIndex = TRUE,
                                        groupsCollapsable = TRUE,
                                        sortLayers = FALSE,
                                        sortGroups = FALSE,
                                        sortBaseLayers = FALSE,
                                        exclusiveGroups = "Miscelanea")) %>%

and get:

collapsedFALSE_groupsCollapsableTRUE

But what I would like the user to see when opening the map is:

wish

which seems to me that would require an additional option "groupsCollapsed=FALSE"

@trafficonese
Copy link
Owner

Unfortunately this is currently not supported in the underlying JS library.
I will have to see how to include it there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants