-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Div icon #250
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
Div icon #250
Conversation
This PR is the first one of a long term plan to get us closer to matplotlib via mplexporter and mplleaflet. See: http://nbviewer.ipython.org/gist/ocefpaf/ab173ae7a7ee40430cdf |
Thank you for your prayers ; everyone I know is fine, but I have a deep thought for past and future victims. |
That's good idea ; I guess we can end-up with a |
Great PR @ocefpaf . I love the notebook with arrow DivIcons, you just gave me a great idea to visualise GPS trajectories. 👍 @BibMartin There's nothing else to add to what has been already said in these days. Let's all hope in a better future. 🇫🇷 |
Glad that was helpful! My real intent is to show ocean currents though 😉 (Soon in a notebook example.) |
I like the idea of a PS: I removed the |
35fd682
to
6037324
Compare
@BibMartin I changed it back to Let me know how bad this is and if we can salvage some ideas for a better PR 😬 |
}); | ||
{{this._parent.get_name()}}.setIcon({{this.get_name()}}); | ||
{% endmacro %} | ||
""") | ||
""") # noqa | ||
|
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.
What does # noqa
mean ?
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.
No questions asked. It serves to tell humans and automatic tools to not mess with that line.
@ocefpaf
It's good to me. Just maybe I should write proper code so that you don't need to pep8 and docstring it. |
Something about I will wait for #261 and #262. (Then I will go back to this one, rebase, polish, and ping you again 😄) |
Rebased and good for another round if review. |
Merged : thanks @ocefpaf |
@BibMartin this is my first attempt to dive in the new code. So I have a few questions:
DivIcon
class was inheriting fromMacroElement
. I changed it toIcon
, although I don't think it matters in this case.div_markers
, but I am starting to think that should go away. It is not really what the originalleaflet
divIcon
is all about.div_markers
should ho we can safely remove thestatic_div_icon.js
and the tests for that method.<templates>.js
that we can remove.Note that in this PR I already removed the template. To see the failure keeping that go to:
https://travis-ci.org/ocefpaf/folium/jobs/91228684
🇫🇷 I am praying for the victims of this horrible attack. I Hope everybody close to you are alright. 🇫🇷