Skip to content

Conversation

@Conengmo
Copy link
Member

@Conengmo Conengmo commented Mar 21, 2025

Earlier we made this change for Marker and Icon (#2068), where the Icon template no longer adds itself to its parent. Instead, the Marker contains code to add its icon to itself. This makes it so that an icon can be reused for multiple markers.

At the time we didn't also apply this to DivIcon and CustomIcon. But it works for them in the same way and solves the same issue.

This should close #744 and also close #1885.

TODO

  • This PR should fix the regression introduced by Fix icon when passing Marker to GeoJson #2086, where marker.add_child(icon) broke.

  • This PR needs some rigorous tests to make sure it works robustly for all cases, like passing icon as a parameter, or doing marker.add_child(icon) or icon.add_to(marker).

@ocefpaf ocefpaf merged commit a53a7b7 into python-visualization:main Apr 22, 2025
13 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

3 participants