Skip to content
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

More than one marker in the same time #71

Open
00ricardo opened this issue Jul 4, 2020 · 0 comments
Open

More than one marker in the same time #71

00ricardo opened this issue Jul 4, 2020 · 0 comments

Comments

@00ricardo
Copy link

Hello! 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:

    if (date.includes(layer.options.time)) {
                options.markers[index_temp] = layer;
            }
            else {
                options.markers[index_temp] = layer;
                date.push(layer.options.time)
                ++index_temp;
            }
  • 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.
image

Thank you! Hope you can help me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant