Conversation
|
Here is a link to the Jupyter notebook in nbviewer: |
Conengmo
left a comment
There was a problem hiding this comment.
Interesting PR Jason! Your example notebook is helpful in seeing what you're trying to add, and I'm positive about working towards getting this merged.
I haven't really dived into your changes to the GeoJson template yet, first wanted to see make clear what the scope of this PR is. I have added some comments about whether certain things should be in this PR.
I'm wondering how necessary it is to pass a folium Marker or CircleMarker object. You're not really using the objects, except for getting the options. But in your notebook it seems your main goal is to update these options for each feature/marker. So the default options get overwritten anyway. How would it be if you let users pass the wanted marker type as a string?
How is point geometry currently handled by the way?
|
Thanks for the review and feedback, @Conengmo! I'll work through your comments and address them inline. |
I think my main goal was to follow What do you think about this approach?
Without a |
|
Thanks @ocefpaf! For the life of me, I can't figure out how to get the .xml files out of version control - I've tried reverting the commits, rebasing my master, etc, but they're still showing up. I'm not sure what to do - maybe I need to close my fork and start a new one. |
Sounds good. I hope your example notebook will learn power users how to do more complicated stuff.
They seem already gone? They're not in the files changed list. Thanks for replying on my comments. Some things have to be resolved:
Your changes to the Thanks for your patience @jtbaker! |
53546b8 to
9f2299a
Compare
|
Hi @jtbaker, this is a very interesting and useful PR ! Do you plan an update in order to merge it ? |
|
Hi all. Really appreciate this project and would love to use these features... @jtbaker I can see you put a lot of work into this. How can we get it to pass test and get merged? |
Can I help testing and if yes, how? ;) |
Add handling for other icons Overload render method to add runtime validation On location field Use name attribute in error reporting
de198ce to
0dcd146
Compare
8d9d234 to
3fa5b95
Compare
|
I got inspired by the interest in this PR and some of the issues it addresses #1059, #1345, #1401 and rebased/refactored against the current state of the repo. The decoupling of some of the pieces of the GeoJSON logic since I last worked on it made it much easier. I believe most of the issues that were raised when this was last discussed have been addressed, but I'd be happy to hear any additional feedback seen it has been quite some time. I've also added a few tests and an example notebook with a few examples of usage. All of the tests are now passing the CI test pipeline as well. Hopefully if this is able to make it in, it's useful to someone. |
Thanks for taking the time to review and your updates Frank! Glad this was finally able to get in.
Perfect. I was having some issues having the notebook's "run" cells passing the linter in CI, so left them unexecuted in VC. |
|
Hi guys, it seems that the test notebook is not available https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/GeoJSONMarker.ipynb |
|
Hello! |
|
Hi I see the example for the marker which work great. I first try to customyze the icon, but it did not work for me. icon = folium.features.CustomIcon(icon_image="Flamme.PNG", icon_size =(15,15)) I have also try to put that in the style but I did not manage to do that Any idea ? |
Ok, I've reworked the GeoJsonMarkers PR to have the commits staged more logically so that they are easier to review. The class is works best with is CircleMarker - it works with normal Marker/Icons too, but since they do not have a
.setStylemethod they can't have styles set dynamically usingstyle_function.Closes #1059.