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

Convert the Legend to anywidget. #2197

Merged
merged 10 commits into from
Dec 18, 2024

Conversation

sufyanAbbasi
Copy link
Collaborator

Demo: https://colab.research.google.com/drive/12NDbK_4rIDXtdWyetliJnTahFnVJ3fNg#scrollTo=0bmDpfbmkS-5

  • Implements the Legend API in anywidget.
  • Less restrictive than before, supports all CSS-style colors, including alpha transparency.
  • Moves title into the header.
  • Shortens the max height to 200px.
  • BACKWARDS_INCOMPATIBLE: widget_args dictionary now only supports show_close_button.

image

Copy link
Collaborator

@naschmitz naschmitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing! Thank you!

geemap/map_widgets.py Outdated Show resolved Hide resolved
geemap/map_widgets.py Outdated Show resolved Hide resolved
@naschmitz naschmitz merged commit c5b6eb9 into gee-community:master Dec 18, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

2 participants