Skip to content

Commit

Permalink
Implement SearchBar using anywidget and LitElement (#2182)
Browse files Browse the repository at this point in the history
* Implement LayerManager using LitElement + anywidget

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update static files

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use non-minified JS files to work around property renaming issue

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Set up tests for layer_manager_row

* Set up layer_manager_row test

* Implement LayerManager using LitElement + anywidget

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update static files

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use non-minified JS files to work around property renaming issue

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Clean up setuptools references in pyproject.toml

* Clean up setuptools references in pyproject.toml

* Fix dark mode and drop shadow issues in Colab

* Remove common.css, load fonts using JS instead.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Rebuild

* Remove extraneous files

* Address comments from initial review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Ignore static files

* Fix TS errors

* Convert tsconfig.json to spaces and export model interfaces

* Add TS tests for anywidgets

* Add a tab panel component

* clean up styles

* Add css classes for better testability

* Add better css classes (p2), build before test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add a rough basemap-selector widget

* Implement Inspector using anywidget and LitElement

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add a tab panel and rough toolbar

* Add tests for basemap selector widget

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Increase margin to 4px

* Add working, rough toolbar (broken layer_manager)

* Add None check to plot tool

* Return empty list for extra tools in core

* Unbreak layer_manager

* Make sure rerendering preserves tab index

* Use primary styling to match old style

* Support dark mode better

* Fix toolbar unit tests

* Address review comments.

* Add type annotation

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Address review comments

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Address reviewer comments

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Extend LitWidget for ToolbarItem too

* Remove scratch file

* Fix core tests

* Implement search bar as anywidget (not working yet)

* Adjust margins

* Search bar MVP

* tab-clicked --> tab-changed

* tab-clicked --> tab-changed

* Move routines to helper methods

* Change info icon to point scan (cross-hair)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add reset button to location search

* Undo icon change

* Remove scratch file

* Add searchbar ts tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add better comment about tooltip property

* Change some icons to match mocks

* Address review comments

* Search on enter

---------

Co-authored-by: Nathaniel Schmitz <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Qiusheng Wu <[email protected]>
  • Loading branch information
4 people authored Dec 17, 2024
1 parent 0f9b090 commit d419fbe
Show file tree
Hide file tree
Showing 6 changed files with 876 additions and 289 deletions.
2 changes: 1 addition & 1 deletion geemap/geemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def add(
obj = backward_compatibilities.get(obj, obj)

if obj == "data_ctrl":
data_widget = toolbar.SearchDataGUI(self)
data_widget = toolbar.SearchBar(self)
data_control = ipyleaflet.WidgetControl(
widget=data_widget, position=position
)
Expand Down
Loading

0 comments on commit d419fbe

Please sign in to comment.