You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am manipulating the size of the slider if there are equal times. If the datetime exists it doesn't increase the size and if it doesn't exist it increases. And it worked!!
But now ... data that shares the same datetime is not displayed, just one marker instead of two (for example)! How can I make this work?
PS:
I have 2 layers (polygon and custom marker) with the same datetime : 04/07/2020 13:00:00, but only the polygon is displayed, I just want to displayed both at the same time.
The text was updated successfully, but these errors were encountered:
Hey if you're still looking for a solution, it requires creating some kind of empty group (geoJSON, featureGroup, layerGroup, etc.), putting both the marker and polygon into it, setting that group's time option to the shared date, then adding that group to the group you're feeding to sliderControl:
If you're looking to control a bunch of groups this way (not just a one-time example), you could also do it by making a group for each set to appear at the same time, setting each group's designated time, loading them all into a layerGroup, then giving that layerGroup to sliderControl:
I've also written an in-depth tutorial for using layerGroup along with markers, for when you want to attach popups to them and have multiple markers appear at the same time.
ello! Is there a way to display more data (markers) that share the same datetime?
It looks like it creates a "step slider" for each marker in the layerGroup. So ... to solve this, I did the following:
I am manipulating the size of the slider if there are equal times. If the datetime exists it doesn't increase the size and if it doesn't exist it increases. And it worked!!
But now ... data that shares the same datetime is not displayed, just one marker instead of two (for example)! How can I make this work?
PS:
I have 2 layers (polygon and custom marker) with the same datetime : 04/07/2020 13:00:00, but only the polygon is displayed, I just want to displayed both at the same time.
The text was updated successfully, but these errors were encountered: