-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add interval support to timestamped_geo_json #1861
Conversation
If I'm correct the main difference with Two thoughts:
I'm thinking, would it be possible to provide a single timeline/timestamped GeoJson plugin to our users? Maybe we can replace the internals of Additionally, What do you think? |
I will implement popup support and To merge the two would be much better indeed. I will need to find a strategy for that as the underlying leaflet plug-ins are different. About that unmaintainable Javascript, were you talking about the This will give the user the choice between hiding an inactive feature and highlighting active features. Any thoughts on this? |
@Conengmo I made some progress, but I am not really happy with it. There is a big underlying difference between the I managed to create a I think I will take a step back and rewrite as follows:
I do like the extra user flexibility of having JsCode parameters for This will at least ensure backward compatibility. However, you may consider this too complicated to maintain and confusing to the user. If so, I can just give up on the project. Let me know your thoughts. |
219296e
to
df4452e
Compare
986fb6a
to
49c46e4
Compare
@Conengmo can you have look? I am not sure whether the advantages of having one plugin for both use cases outweighs the additional maintenance complexity. Another approach would be to have two classes in |
This is a implementation of the leaflet.timeline plugin. See: https://skeate.dev/Leaflet.timeline. It has extra functionality above
Leaflet.TimeDimension
plugin currently used byTimestampedGeojson
. One of these is the ability to specify bothbegin
andend
times for feature. I also liked the ability to show ticks under the timeslider.This is still a work-in-progress, I just created this as a heads-up. And also to see if the maintainers are interested in a second plugin to support GeoJson with timestamps.
If you are okay with the general idea I will implement more parameters (and add documentation).