ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

No Map object output when executing Popup Documentation example

Open ladoramkershner opened this issue 2 years ago • 3 comments

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!

ladoramkershner avatar Dec 15 '22 18:12 ladoramkershner

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.

shodol avatar Jan 30 '23 05:01 shodol

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

SRSeaver avatar May 11 '23 11:05 SRSeaver