-
Notifications
You must be signed in to change notification settings - Fork 174
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
Only hide base layers from the same group. #360
base: master
Are you sure you want to change the base?
Conversation
488e846
to
06750f5
Compare
After looking closer at how the The last thing that is bugging me is that individual layers need to be added with I've also updated this PR on top of the most recent v3.7.0 changes. @walkermatt I'm curious what you think; I think this would be a useful feature. I'm happy to help write tests and make any other changes to get this in! |
I'm in support of this. I'd be happy to move away from having to set |
I added an
The limitation with this is that you couldn't have |
I'm wondering about adding a property to each layer in an exclusive group equivalent to the radio button I think this could allow us to eventually drop Demo with two separate exclusive groups: http://raw.githack.com/walkermatt/ol-layerswitcher/exclusive/examples/layerswitcher.html |
@walkermatt that looks great! Maybe A simplification would be to allow this configuration on just the group. So that By allowing an This could maybe allow |
Hi everyone, I have the same problem (a layer group where I would like to have radio buttons, plus a group of basemaps) and just wanted to ask whether there are currently any plans for adding this feature? It would be really useful! :) |
Hi everyone... I have the same need to have layers that can be viewed in an exclusive way... |
Hello, will this issue ever be closed? I mean this issue has been opened by two years and showed a potential fix, but still is not on the master branch... |
It would be nice to make the base layer functionality (only one layer visible) apply to individual layer groups. This way only one layer from the layer group could be shown, while still showing a different base layer from a base layer group.
I believe this is functionality requested in #315
The way I have implemented this it would be "breaking" in the sense that it changes the current functionality of this library. If this is a problem, is there maybe an alternative way we could specify Layer Groups to behave in this manner? eg: Specify the Layer Group
type = 'base'
, and then limit this behavior to "base" layer groups?A specific use case is Drone imagery layers, where we want to display multiple raster TileLayers, but only one at a time from the "Drone Imagery" group. Example:
