You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
grass.jupyter.InteractiveMap needs a raster legend, there is no way to display it.
Describe the solution you'd like
One way would be to use d.legend and display that, but I think it will be nicer to get the color values with r.colors.out and use some html/javascript magic to create a legend.
Describe alternatives you've considered
Render d.legend into a file and display that on top of the map.
The text was updated successfully, but these errors were encountered:
As an initial solution, I propose rendering d.legend to display the legend first. This will provide an immediate way to visualize raster legends within Jupyter Notebook.
Once that works, I can explore a more dynamic and interactive approach using r.colors.out combined with HTML and JavaScript to create a fully integrated legend. This should enhance usability and allow for better customization.
Would this approach work for you?
As an initial solution, I propose rendering d.legend to display the legend first. This will provide an immediate way to visualize raster legends within Jupyter Notebook. Once that works, I can explore a more dynamic and interactive approach using r.colors.out combined with HTML and JavaScript to create a fully integrated legend. This should enhance usability and allow for better customization. Would this approach work for you?
Well, that's what the issue is already describing, so yes, that works, although I would consider going with the second approach right away.
Is your feature request related to a problem? Please describe.
grass.jupyter.InteractiveMap needs a raster legend, there is no way to display it.
Describe the solution you'd like
One way would be to use d.legend and display that, but I think it will be nicer to get the color values with r.colors.out and use some html/javascript magic to create a legend.
Describe alternatives you've considered
Render d.legend into a file and display that on top of the map.
The text was updated successfully, but these errors were encountered: