-
Notifications
You must be signed in to change notification settings - Fork 30
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
Layerviewcontrol #93
Layerviewcontrol #93
Conversation
Thanks, this is awesome!
|
I would prefer to keep the 2 functions separate or I dont see the advantage of mixing them. Yes that is definitly possible. |
new argument |
As it stands currently, |
BTW, I am also contemplating adding options for opacity sliders and color legends. This would make things much cleaner than the current legend solutions that are available... |
I see, you're right. I will look into it. You mean to inlcude one of those opacity plugins to change the opacity of base and overlay groups, or add a custom JS function? And how should the color legend look like? You mean to integrate the whole R-leaflet legend in the layersControl or should it be just 1 colored symbol per group? |
Yes, just a simple horizontal slider that does not take too much space.
Just a standard legend, horizontal placed under the layer name, so you'd have layername | homebutton Both opacity slider and legend could/should probably be hidden when the layer is hidden... Legends for standard basemaps are not necessary I guess. But I can take care of implementing this as soon as we have a working function to extend standard layers control... This is mainly for mapview to make maps look cleaner |
Got it. We could maybe integrate it in addGroupedLayersControl Right now I think the |
Hm, not a bad idea... I agree that whatever we implement, it should be compatible with both standard and grouped layer control. If I envision all this correctly, then we either need a |
I went for I am hijacking the legends with a corresponding See the example |
Ok, this is fantastic!!! The only small issue I have is that horizontal legends would make it even better :-) Do you think that's possible without too much effort? Package |
Maybe if we overwrite quite some CSS, but it would be best if |
Maybe we can just utilize |
I thought the exact same, but I will have to test it as |
@trafficonese is this ready to merge? |
yes I think so, allthough I haven't tested it a lot yet. |
fixes #90
I didn't add the legend part, I tried a bit but it's painful. And I never add feature layers as basegroup, so it didn't seem a high priority for me.
I also added a shiny example in
/inst/test_layerviewcontrol.R