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

Adding a legend? #492

Open
shriv opened this issue Apr 29, 2024 · 1 comment
Open

Adding a legend? #492

shriv opened this issue Apr 29, 2024 · 1 comment

Comments

@shriv
Copy link
Contributor

shriv commented Apr 29, 2024

The examples on deck.gl don't have an integrated legend but I saw this suggestion on Pydeck and wonder if something similar would work with lonboard? There isn't an equivalent argument of description in the layers but it does look like there is a description card component in deck.gl Jupyter widget though not sure how to call it through lonboard..

@kylebarron
Copy link
Member

Yes, a legend is desirable. But it's more likely for it to be built as a standalone widget (from python) than as a JavaScript component.

You can make a barebones legend by piecing together existing components from ipywidgets. A vbox of text and check boxes where checking a box toggles the visible flag on a layer

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