Skip to content

Preserve layer visibility - #21

Open
devdattaT wants to merge 2 commits into
mug-jp:mainfrom
devdattaT:Preserve-layer-visibility
Open

Preserve layer visibility#21
devdattaT wants to merge 2 commits into
mug-jp:mainfrom
devdattaT:Preserve-layer-visibility

Conversation

@devdattaT

Copy link
Copy Markdown

I wanted that the layer switcher should preserve the current visibility of the layers, and the layers need not be switched off when this control is used.
This has also been requested in #20

I have added an option called preserveLayerVisibility. When it set to 'true`, the control will read the current visibility state of each operational layer, and sets the checkbox accordingly.

This option does not affect how the control switches the base layers on and off.

This PR Fixes #20

@devdattaT

Copy link
Copy Markdown
Author

I felt that this variable should be true by default but I have set to be false by default for backward compatibility. Do let me know if you think it should be set to true by default.

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

Successfully merging this pull request may close these issues.

layer visible as default

1 participant