-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Remove popup_on #133
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
Remove popup_on #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@themiurgo Quick questions before we merge this. Why did you choose an empty string instead of the 'var no_pop = null;'? Will the marker be clickable with the empty string? If so, that might be misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact if there is no popup text, I do not set a javascript variable at all in the HTML template. The marker will not be clickable so no variable is set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, in my tests, that behaviour happens anyways, even if no_popup is set. Try the same on the master branch and you'll see the hand popping up anyways, even if popup_on is set to False.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so setting it to null does not change that. Let me take a closer look at this later (I am still travelling...)
If that is what leaflet does then lets merge as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Here's an example what comes out from folium (master branch) with popup_on=False on a marker:
https://gist.github.com/themiurgo/170dbb742897f9b86da6#file-no_popup-html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also here:
http://leafletjs.com/examples/quick-start.html
Third map, there are some elements without popup content. Hand still shows. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then. It is a Leaflet issue! Lets merge...
|
Thanks @themiurgo! The PR looks good to merge. I just want to test it locally and once I get back in the office I will merge it. |
|
Great, let me know if any issues pop out! 😄 |
One did not 😛 |

Solves #131