Skip to content

add options to fullscreen plugin #468

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

Conversation

qingkaikong
Copy link
Contributor

This PR is to add options to the fullscreen plugin, including: position, title, titleCancel, and forceSeparateButton.

@@ -4,6 +4,7 @@
from folium.plugins import Fullscreen

m = folium.Map(location=[41.9, -97.3], zoom_start=4)
Fullscreen().add_to(m)
Fullscreen(position = 'topright', title = 'Expand me', titleCancel = 'Exit me',
forceSeparateButton = True).add_to(m)
Copy link
Member

Choose a reason for hiding this comment

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

We are enforcing pep8. That menas you will need to remove the spaces in the operators:

e.g.: position = 'topright'position='topright'

and the indentation, like aligning the forceSeparateButton with the position above, note that this should be automatic in many text editors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I see, I will follow that.

@qingkaikong qingkaikong force-pushed the add_options_to_fullscreen_plugin branch 2 times, most recently from ae3d4d3 to 330668b Compare July 16, 2016 23:10
@qingkaikong
Copy link
Contributor Author

It seems it failed because of the test_fullscreen.py, it has the assertion that need to be changed, since we added the options, I will try to do this tonight.

@qingkaikong qingkaikong force-pushed the add_options_to_fullscreen_plugin branch from 330668b to 4b4ffef Compare July 17, 2016 03:18
@qingkaikong qingkaikong force-pushed the add_options_to_fullscreen_plugin branch from 4b4ffef to ab09288 Compare July 17, 2016 03:29
@qingkaikong
Copy link
Contributor Author

Ok, now I fixed the test_fullscreen.py, so it passed the test. But there's still 1 failing seems related with the notebooks, but my PR should work now.

@ocefpaf
Copy link
Member

ocefpaf commented Jul 17, 2016

I will take a look at the notebook failure later, but yours seems good to go.

@ocefpaf
Copy link
Member

ocefpaf commented Jul 17, 2016

Merging this as the issue is unrelated to the PR.

Thanks @qingkaikong! Hope you had a nice flight back home!!

@ocefpaf ocefpaf merged commit 0c8dd3c into python-visualization:master Jul 17, 2016
@qingkaikong
Copy link
Contributor Author

Thanks Filipe,

I just came back to Berkeley! Thank you so much for help me start to
contribute to folium! Great mentor!

I will try to contribute more to folium in the future.

best
Qingkai

On Sun, Jul 17, 2016 at 1:47 PM, Filipe [email protected] wrote:

Merged #468 #468.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#468 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABi9TG-przTeBc7a9s5nbiTcKT721N7Qks5qWpTWgaJpZM4JOHKn
.

Qingkai KONG
Ph.D Candidate
Seismological Lab
289 McCone Hall
University of California, Berkeley
http://seismo.berkeley.edu/qingkaikong

@qingkaikong qingkaikong deleted the add_options_to_fullscreen_plugin branch July 23, 2016 05:12
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
…ons_to_fullscreen_plugin

add options to fullscreen plugin
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