-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Features #203
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
Features #203
Conversation
@BibMartin this is looking awesome. I really like the clarity of things. I will take a more careful review once I get back home (I am travelling now). |
👍 I am not so sure of including Figure as a Feature (I would follow more closely what Leaflet is doing, and keep features being only markers and the likes) but the general direction is great. |
Hi all ! I'm almost finished with what I had in mind. |
@themiurgo : Sorry, I realize that a former post I did here has not been recorded. |
😸 I like the analogy, but I am not sure if |
There's still a lot of work to do here:
We can :
any point of view ? |
Wait a while that I finish the biggest part of it, and merge then,
Waiting to merge or not is up to you.
As soon as you think this is ok to go to master, even with missing pieces,
we'll do it.
I will avoid merging anything but bug fixes until then. (And even those
will be in a bugfix release branch.)
|
Conflicts: folium/utilities.py
I think I'm done (for the moment) and ready to merge. As told before there's still a lot to do for recomputing plugins (see https://github.com/BibMartin/folium/blob/features/examples/Features.ipynb for the list) and for binding today's API with this structure. For the moment, I've splitted the code into 3 files only :
@themiurgo @ocefpaf ; if you have time to review... ☕ |
I am teaching a workshop this week, but I will try to take a look at it tomorrow. @themiurgo If you think this is OK do not wait for me. |
@BibMartin I just gave this a more through review and I am 👍 However, I really want @themiurgo's option and,if possible, some of @wrobstory's too. This is a big change we and all need to be on the same page before merging. |
Well, in fact this PR does not break anything (if you do I will create another PR aiming at plugging the API back ; so that when you |
I am planing to merge this next Friday... Speak now or forever hold your peace! |
And done! |
👏 On Fri, Sep 11, 2015 at 9:01 AM Filipe [email protected] wrote:
|
Thanks @ocefpaf ; sorry I forgot to squash. Is there a way to repair ? |
No problem. There are several commits but, for most of them, it is actually better to be separated. |
This is another version of #170 .
This is not ready for merge. But I would like to share it and have your point of view.
At the cost of scrambling things in version 2, I think this is a more robust implementation of #170's ideas.
The main new thing is a
Feature
object that has_parent
and_children
attributes, and arender
method. Everything inherits from this (Map, Figure, Layer, ...)._parent
is either anotherFeature
, orNone
(if this is the root of the tree)._children
is anOrdredDict
ofFeature
s.render
method calls therender
method of each children, it can have a bodre effect on the parent, and it returns a string.