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

Add subitems to layers (either layers or controls or a mixture of both) #1011

Merged

Conversation

HaudinFlorence
Copy link
Contributor

@HaudinFlorence HaudinFlorence commented Jul 1, 2022

Add subitems to layers (either layers or controls or a mixture of both).

@davidbrochart davidbrochart changed the title Add subitems to layers (either layers or controls or a mixture or both). Add subitems to layers (either layers or controls or a mixture of both) Jul 4, 2022
Copy link
Member

@davidbrochart davidbrochart left a comment

Choose a reason for hiding this comment

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

Could you rebase on master?

examples/Choropleth.ipynb Outdated Show resolved Hide resolved
examples/Subitems.ipynb Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented Aug 10, 2022

Could you rebase on master?

Thanks for the review. Rebase has been made.

@HaudinFlorence HaudinFlorence force-pushed the add_subitems_to_layers branch 2 times, most recently from 38dfc81 to 1aa9b8f Compare September 5, 2022 12:02
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

It would be great to add a galata test for this :)

js/src/Map.js Outdated Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
@HaudinFlorence
Copy link
Contributor Author

It would be great to add a galata test for this :)

A notebook has been added in ui-tests/notebooks in e0b19ac, to test adding subitems in layers and check that they correctly display.

@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented Sep 7, 2022

please update galata references

@HaudinFlorence
Copy link
Contributor Author

Please update galata reference

@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented Sep 12, 2022

please update galata references

@HaudinFlorence
Copy link
Contributor Author

please update galata references

@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented Sep 15, 2022

The CI tests are now green. Is there other things I may add or check ?

@martinRenou
Copy link
Member

Thanks! I will give the PR a try. I suspect there is a bug when you create the map in a first Notebook cell, and add the layers with sub-layers in a separate cell.

setup.py Outdated Show resolved Hide resolved
@martinRenou
Copy link
Member

I suspect there is a bug when you create the map in a first Notebook cell, and add the layers with sub-layers in a separate cell.

Indeed there is an issue when the Map is shown before adding the layers with sub-items, as seen in this screenshot (the first map view does not have the subitems visible, the second map view has them):

Screenshot from 2022-09-15 11-48-07

ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
js/src/layers/Layer.js Outdated Show resolved Hide resolved
js/src/layers/Layer.js Show resolved Hide resolved
js/src/layers/Layer.js Show resolved Hide resolved
@HaudinFlorence
Copy link
Contributor Author

please update galata references

1 similar comment
@HaudinFlorence
Copy link
Contributor Author

please update galata references

@HaudinFlorence
Copy link
Contributor Author

please update galata references

1 similar comment
@martinRenou
Copy link
Member

please update galata references

@martinRenou
Copy link
Member

please update galata references

@martinRenou
Copy link
Member

Please update galata references, this time it should probably work :D

@martinRenou
Copy link
Member

update galata references

@martinRenou
Copy link
Member

Triggering CI

@martinRenou martinRenou reopened this Sep 23, 2022
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thank you!!!

@martinRenou martinRenou merged commit 50dc472 into jupyter-widgets:master Sep 23, 2022
@HaudinFlorence
Copy link
Contributor Author

Thank you!!!

Thanks a lot for the review and help on this PR !

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.

None yet

3 participants