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

The LayersControlDirective should take into account hidden layers #442

Open
jochenjonc opened this issue Apr 16, 2020 · 1 comment
Open
Assignees

Comments

@jochenjonc
Copy link

Is your feature request related to a problem? Please describe.
When a layer within a yaga-layers-control has the display set on false, the checkbox or radiobutton in the yaga-layers-control on screen should be unchecked.
At the moment it is checked and for the user to be able to view the hidden layer, the user must first uncheck and then check the layer again.

Describe the solution you'd like
A way to tell the yaga-layers-control that a layer is hidden by default and the addTo method should not be called on it. I think the display attribute could be used for that.

Describe alternatives you've considered
Solution in Leafet: https://stackoverflow.com/questions/46043995/set-leaflet-overlay-off-in-the-layer-control

@atd-schubert atd-schubert self-assigned this Feb 23, 2021
@atd-schubert
Copy link
Member

Maybe this can be an issue with the 2-way binding. I will take a look at it... Sorry for the delay

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