Skip to content

Conversation

@jelmelk
Copy link
Contributor

@jelmelk jelmelk commented Dec 2, 2015

#268

Added it to the Map class. Shows up on bottom left.

@BibMartin
Copy link
Contributor

Wow @jelmelk ; a PR just a few minutes after the issue's report !

I think this would worth being in a separate plugin ; otherwise you force everyone to have the control.scale on his map. You can find inspiration in other plugins (like https://github.com/python-visualization/folium/blob/master/folium/plugins/terminator.py).

Provided that you're also working on #265 and #267 ; tell me if you want I do a part of the job 😉

@ocefpaf
Copy link
Member

ocefpaf commented Dec 2, 2015

Wow @jelmelk ; a PR just a few minutes after the issue's report !

Awesome! Thanks for the PR @jelmelk!

I think this would worth being in a separate plugin

👍

@jelmelk the key is the template. Note that you do not have any extra JavascriptLink in this case.

tell me if you want I do a part of the job

@jelmelk I am sure @BibMartin would do this quickly, but we (myself included) most learn the new "pluginified way" to do things in folium v0.2.0.

So I recommend you take your time and ask for help as much as you need to get this ready on this PR. It will be worth the effort in the long run 😄

@jelmelk
Copy link
Contributor Author

jelmelk commented Dec 2, 2015

I think this would worth being in a separate plugin ; otherwise you force everyone to have the control.scale on his map.

It seemed that it's something minor, same as the zoom control. But if it needs to be a separate plugin so be it, if you don't mind tackling that @BibMartin then I'll pay attention on how you do it as a future reference.

@jelmelk I am sure @BibMartin would do this quickly

Isn't that the truth 😆

As far as #265, not only I ruined the PR by overlapping additional ones it'll take me longer to get something like that done, so it's up to you @BibMartin.

For #267 I'm 100% on board.

@BibMartin
Copy link
Contributor

I'm in line with @ocefpaf's concern

but we (myself included) most learn the new "pluginified way" to do things in folium v0.2.0.

But you're doing a great doc job in #267 and I guess this is the main priority before v0.2.0 release.

I'll finish up the #265 to help, and leave this PR to you as an exercise (I've never been teaching, but always dreamt to say that) ; provided there's no hurry on it.

@jelmelk
Copy link
Contributor Author

jelmelk commented Dec 2, 2015

@BibMartin thank you for your help. I'll take it easy on PR for adding features while I learn the process.

@ocefpaf
Copy link
Member

ocefpaf commented Dec 2, 2015

@BibMartin thank you for your help. I'll take it easy on PR for adding features while I learn the process.

👍

@ocefpaf ocefpaf added this to the v0.2.1 milestone Dec 3, 2015
@ocefpaf ocefpaf modified the milestones: v0.2.1, v0.3.0 Dec 17, 2015
@ocefpaf
Copy link
Member

ocefpaf commented Jan 15, 2016

@BibMartin coming back to this I don't think we should add this as a plugin. In the L.control.scale has no customization options. It is simple a True/False thing.

Maybe this a case where we could overload the Map() initialization with a new kwarg (control_scale=False/True). What do you think? If so, @jelmelk are you wiling to resurrect this PR, implement the kwarg, and add a test for both cases?

@ocefpaf
Copy link
Member

ocefpaf commented Feb 12, 2016

@BibMartin bringing this back to your radar. What do you think of my comment above? If you agree we can add this to v0.2.0.

@BibMartin
Copy link
Contributor

Ok, see #355

@ocefpaf ocefpaf mentioned this pull request Feb 12, 2016
@ocefpaf
Copy link
Member

ocefpaf commented Feb 12, 2016

Closing in favor of #355. Thanks @jelmelk!

@ocefpaf ocefpaf closed this Feb 12, 2016
@ocefpaf ocefpaf added the enhancement Feature request or idea about how to make folium better label Feb 12, 2016
@ocefpaf ocefpaf modified the milestones: v0.2.0, v0.3.0 Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature request or idea about how to make folium better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants