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

Implement Toolbar and ToolbarItem to anywidget and LitElement #2174

Merged
merged 83 commits into from
Dec 16, 2024

Conversation

sufyanAbbasi
Copy link
Collaborator

@sufyanAbbasi sufyanAbbasi commented Nov 15, 2024

  • Converts toolbar and tool items to anywidgets, which provides higher performance, since we can use CSS to show an hide the widgets instead of re-rendering.
  • Changes icons based on UX recommendations.
  • Removes the on_layers_toggled callback, since it's not being used anymore.

Staged: https://colab.research.google.com/drive/12NDbK_4rIDXtdWyetliJnTahFnVJ3fNg?usp=sharing

After:
image
image

Before:
image

naschmitz and others added 30 commits October 10, 2024 13:17
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.

Looks great! I haven't had a chance to look through the entire PR yet. Leaving some initial comments.

geemap/toolbar.py Outdated Show resolved Hide resolved
geemap/toolbar.py Outdated Show resolved Hide resolved
geemap/toolbar.py Outdated Show resolved Hide resolved
js/basemap_selector.ts Outdated Show resolved Hide resolved
js/tab_panel.ts Show resolved Hide resolved
js/tab_panel.ts Outdated Show resolved Hide resolved
js/toolbar.ts Outdated Show resolved Hide resolved
@sufyanAbbasi sufyanAbbasi changed the title Convert toolbar and tool items to anywidget Implement Toolbar and ToolbarItem to anywidget and LitElement Nov 28, 2024
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 looks great! Thank you!

geemap/toolbar.py Outdated Show resolved Hide resolved
@sufyanAbbasi sufyanAbbasi removed the request for review from giswqs December 16, 2024 23:53
@sufyanAbbasi sufyanAbbasi merged commit 0f9b090 into gee-community:master Dec 16, 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.

3 participants