-
Notifications
You must be signed in to change notification settings - Fork 67
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
layer control and timeline out of sync #103
Comments
@mattbeets im trying to make something similar you did.
But when i try to add it to a layer so i can toggle using groupedLayer i'm getting similar errors |
@mattbeets i managed to solve it by adding the timeline to a LayerGroup. Notice that the diferent syntax is because im using vue-cli3.
i Hope this solves your issue |
Thank you so much, Marcelo. |
Thank you for a great timeline plugin.
I have several different layers on my map showing GeoJSON data through time with the timeline and it's working great. However, when I try to add a layer control where these layers can be switched on/off, it seems the layer control is not synchronizing with the timeline. The polygons are synchronized, but the different marker layers seem to not "listen" to the layer control and the timeline. When clicked on and then off in the layer control, the markers do not disappear from the map as they should when they are off time range, and they kind of "accumulate" on the map instead.
I tried playing around with layer/feature groupings and add them to the timecontrol, but then I just keep getting an error saying "Cannot read property 'filter' of undefined" in leaflet.timeline.min.js

and also referring to my own code line 624 (see image).
I am kind of stuck on figuring out the problem at this point. I hope someone can help.
You can see the map and the whole code here: http://prehistoricmap.com/homeland/test_icon.html
The text was updated successfully, but these errors were encountered: