-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
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 |
Hi @kylebarron. Just revisiting this issue as I do have pressing need for a colormap legend. I put together what I'm after with two screenshots below.. The simplest option is putting the output of |
We don't currently have a way to inject custom HTML onto the map, and so this isn't currently possible. I don't think we want to provide a custom colormap legend on the map itself. As it is, you can render the colormap in a cell right before the map. Or you can use something like |
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 withlonboard
? There isn't an equivalent argument ofdescription
in the layers but it does look like there is a description card component indeck.gl
Jupyter widget though not sure how to call it throughlonboard
..The text was updated successfully, but these errors were encountered: