-
Notifications
You must be signed in to change notification settings - Fork 5
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
Marker popups do no show for ipyleaflet maps #101
Comments
I'm able to run the popup example successfully with ipywidgets 7.6.5 and ipyleaflet 0.17.3. It looks as though something with ipywidgets >8 broke popups -- jupyter-widgets/ipyleaflet#1081 Anyway, it'd also be interesting to know if, with this same environment, whether popups work for you in a Jupyter notebook |
I was able to get my shiny for python app working with the following requirements:
I am assuming that something broke in ipywidgets >= 8.0.0 |
The strange thing for me is that it works in jupyter/quarto, but not in Shiny. However, downgrading to a |
I can confirm that popups no longer work with shinywidgets and ipywidgets>=8.0.0. If I use
I'm pretty sure that we need to update the version of @jupyter-widgets/html-manager that we use in shinywidgets py-shinywidgets/js/package.json Line 18 in d4e0f7c
but this will require code changes in shinywidgets. For now, I can get away with settings from shiny.express import input, render, ui
from shinywidgets import render_widget
from ipyleaflet import Map, Marker, Popup
from ipywidgets import HTML
@render_widget
def map():
map = Map(center=(50.6252978589571, 0.34580993652344), zoom=3)
popup = Popup(child=HTML(value="hello"))
point = Marker(location=(52.204793, 0.121558), draggable=False)
map.add(point)
map.add(popup)
return map |
@cpsievert Here's an ipynb version of the above example where popups work as expected: https://gist.github.com/gadenbuie/621159ebb65c6bede63a66132a38b88e with
|
Thanks for this, it is very helpful. I understand that the current setup does not work on Shinylive. Are there any guidance or recommendations to make it work on Shinylive? It would be greatly appreciated. |
Description
When I include a
marker.popup
the marker does not show up.What I Did
With a popup, the marker not render:
With no popup, the map renders as expected:
Other info
The text was updated successfully, but these errors were encountered: