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

No Map object output when executing Popup Documentation example #1081

Open
ladoramkershner opened this issue Dec 15, 2022 · 3 comments
Open

Comments

@ladoramkershner
Copy link

When running the example code at: https://ipyleaflet.readthedocs.io/en/latest/layers/popup.html in VS Code, I am not getting any output. From this example I am expecting three outputs; a map, a marker with a popup, and a popup at the center of the map.

If I uncomment m.add_layer(popup) I get a map output, but it is lacking the Marker and the center popup. If I then comment out marker.popup, I get a map with the center popup. Finally if I remove the argument child=message1 from Popup object creation, I get the map, the marker, and an empty popup window in the center of the map. It seems anything related to the message1 or message2 variable silently fail.

When I check on the message1 variable through a simple print, I do see HTML(value='Try clicking the marker!').

I am curious to see if this has something to do with my set up, so just seeing if someone can replicate this behavior would be great! Even if it is related to my set up, I am wondering if a louder failure might be an appropriate addition.

Thank you!

@shodol
Copy link

shodol commented Jan 30, 2023

Has anybody looked into this issue? I am having a similar issue. My map displays fine until I add marker.popup. Map stops showing up and no error message is returned.

@SRSeaver
Copy link

When I remove the child=message1 argument, I get the map and marker, but no empty popup window.

@fgashakamba
Copy link

I can comfirm that this issue still exists (December 2024).

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

No branches or pull requests

4 participants