-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Leaflet.Timedimension ; a first shot #156
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
Conversation
It looks good. The only thing I would improve is putting all the html/js code in separate file(s) and handle them as small templates. This already happens in folium (see |
I like having "one plugin is one file", but handling them through templates is possible and more elegant. Now, I cannot figure out where and how I shall put the templates:
|
These are all good questions and I don't have definite answer for all of them, but we can talk about pros/cons of each. At first thought I think, instead of "one plugin is one file" we could use it "one plugin is a directory", to get the best of both worlds. This way we keep templates dir neat and we have also a neat plugin structure. What do you think? Probably one template for both js and html works well in this case. We might need several templates in other cases, when we add stuff to different parts of the main (root) template. |
Finally, I've created a |
Good. Is the PR good to go or you want to add other stuff? |
👍 @BibMartin I want to issue a new release with the plugin machinery (probably 0.2.0, or maybe 1.0.0 😉). Can you give me a roadmap of your thoughts on the plugins? What else are you planning to do? |
I would say, once we put to work a few plugins (3-4), we will merge this into master, and that's when we can release the new version. |
@themiurgo : I'm okay for this PR ; and just squashed everything. @ocefpaf :
I would vote for 0.2.0 if you go now ; 1.0.0 being when we have a stable plugin structure, solved #135, and cleaned-up the code (for example clusterMarker are implemented twice today).
I'm afraid I cannot be very precise. I'm in holiday right now and I'm not even sure I will keep the pace. |
Check failed due to |
Nope. It is good as is.
OK. Done in #159
😱
I said we had one rule but in fact we have two:
|
😆 |
To get ready for 0.2.0, I would suggest:
|
Once we merge plugins to master, #158 would be just as urgent as other optional features that have been introduced in folium, e.g. awesome markers and so on. We probably need to make a list of what we want to convert to a plugin and find out what is the folium core. |
You guys are basically fixing 1 year of (my-)bad development 😉 |
Don't be so hard on you @ocefpaf , we are all trying to find what is folium and how to improve it 👍 |
👍 |
@themiurgo : I agree. To me folium is something that "puts object on a map", but every object is not a plugin even though one can compute them the same way. Maybe we shall list them, decide what's core and what's plugin ; it will also benefit to documentation. |
Is there a way that we could make this a little more general. timeDimension for any given layer (imageOverlay, WMS layer, geojson what have you) |
There are ways and we would love to have that. Are you interested in tackling this problem? |
I may try to give it a wack but I'm new to folium and am still learning the overall flow of how the program is structured |
Not ready yet, but open for discussion ; @ocefpaf @themiurgo any comment ?