-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Pattern #966
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
Pattern #966
Conversation
Cool PR, @talbertc-usgs! thanks for taking the time to submit. |
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.
LGTM. Just waiting on @Conengmo's 👍 to merge it.
Also simplify the template
Now replace the objects in the dict, since they should already have been rendered.
Hi @talbertc-usgs, I was checking out your PR and while doing that I made some changes:
Since I also made some changes/simplifications to
It's not perfect but for now this seems a good solution. |
@talbertc-usgs do you want to take a final look at this? I would like to go ahead with merging this :) |
# Conflicts: # folium/utilities.py # tests/test_utilities.py
Hope you're not in the shutdown @talbertc-usgs? Anyway, thanks for making this PR! Hope you liked contributing to folium. |
Hello Filipe and Frank,
Thank you for reviewing and merging this PR. I was out on US government
furlough so I'm just getting back to this now. Please let me know if there
are any changes or improvements needed.
Thanks,
Colin
…On Sat, Jan 12, 2019 at 4:13 AM Frank ***@***.***> wrote:
Merged #966 <#966>
into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#966 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWHgaksQc8RglFtbByrRfLM3vXSF71Jqks5vCcNfgaJpZM4Wu9lF>
.
|
Hi Colin, I think it’s good for now, but do try it out for yourself. If you want to help out again with folium you’re very welcome to. |
This is my first attempt to author a plugin. It's working but I have a few concerns or questions.
The main one is that I need to pass a JS object with the pattern to the style_function. I did this by editing features.py to type check for branca MacroElements and passing their name to the output instead of themselves. Even still the name was getting passed enclosed in quotes, which I'm manually stripping for now. Ideas on an alternate or cleaner way to accomplish this business would be appreciated.
Also I wasn't quite sure how to structure the test.
here's the example:
http://nbviewer.jupyter.org/github/talbertc-usgs/folium/blob/pattern/examples/Pattern.ipynb