Skip to content

plugins: add fullscreen plugin #437

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

Merged
merged 4 commits into from
Jun 2, 2016

Conversation

sanga
Copy link
Contributor

@sanga sanga commented May 23, 2016

I suppose at this point this is more of a request of interest (or lack of interest).

Tested manually and works. However should have a test added. Also it's somewhat unuseful at the moment (at least for me) as it won't work in an iframe which means that currently (I've filed a bug with the jupyter guys) it won't work in jupyter.

But, basically. Should I bother polishing this a bit more (adding a test etc)?

@ocefpaf
Copy link
Member

ocefpaf commented May 23, 2016

@sanga this is definitely worth polishing! Nice addition.


Note: does not work from within an iframe, and because of this, does not
work in jupyter notebook
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this in the class docstring. Add here just a quick description like Adds fullscreen button to your maps.

@sanga sanga force-pushed the fullscreen_plugin branch from 0a85d27 to 9ff2a47 Compare May 28, 2016 11:31
@sanga
Copy link
Contributor Author

sanga commented May 28, 2016

Addressed all comments (I think). Did a little cleanup. Added (a rather soft) test. Added an example. And did a couple of 'drive by' fixes elsewhere. Let me know if you'd rather have the fixes in a separate branch. Oh and I force pushed with clean git history (let me know if you'd rather I didn't)

@sanga sanga force-pushed the fullscreen_plugin branch from 9ff2a47 to 30feb57 Compare May 28, 2016 11:51
@sanga
Copy link
Contributor Author

sanga commented May 28, 2016

And force pushed a few cleanups to the fullscreen test

Adds a fullscreen button to your map.

Note: does not work from within an iframe, and because of this, does not
work in jupyter notebook
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mentioned you filed a bug about this, right? Can you add a cross-reference link here so people can follow the status of that?

@ocefpaf
Copy link
Member

ocefpaf commented May 28, 2016

LGTM. Only 1 minor comment.

@BibMartin if you find some time to take a quick look and, this is OK for you, go ahead and merge. Otherwise I will merge this next week once I get back in office.

@ocefpaf
Copy link
Member

ocefpaf commented May 28, 2016

@sanga do you mind also adding an entry in the changelog file?

@sanga sanga force-pushed the fullscreen_plugin branch from 30feb57 to 35f44a3 Compare May 28, 2016 19:13
@sanga
Copy link
Contributor Author

sanga commented May 28, 2016

So I figured out who was rendering that iframe element (to which the allowfullscreen attr needed to be added). It wasn't jupyter actually. It's branca:

python-visualization/branca#13

I've just noticed that I missed your comment about the changelog. Change coming shortly

@ocefpaf
Copy link
Member

ocefpaf commented May 30, 2016

So I figured out who was rendering that iframe element (to which the allowfullscreen attr needed to be added). It wasn't jupyter actually. It's branca:

Cool. Since that is an in-house issue let's get python-visualization/branca#13 sorted out first before we merge this. I am in a conference and I will take a look at this as soon as I get back. But it looks all good already. Thanks @sanga!

@sanga
Copy link
Contributor Author

sanga commented Jun 2, 2016

python-visualization/branca#13 is merged so this should be mergable now.

@ocefpaf ocefpaf merged commit dc79d2f into python-visualization:master Jun 2, 2016
@ocefpaf
Copy link
Member

ocefpaf commented Jun 9, 2016

Just used this plugin for a GIS lecture using Jupyter notebooks and folium. Thanks @sanga!

@sanga
Copy link
Contributor Author

sanga commented Jun 9, 2016

no worries! :)

sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
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

Successfully merging this pull request may close these issues.

2 participants