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

Unable to hide show canvas-markers-layer #5

Open
navilaufm opened this issue Oct 21, 2021 · 2 comments
Open

Unable to hide show canvas-markers-layer #5

navilaufm opened this issue Oct 21, 2021 · 2 comments

Comments

@navilaufm
Copy link

Hi,

Following documentation I see clear, and redraw, clear seems to clear the layer but cannot show it again or redraw.

I am trying to simulate an animation creating several canvas-markers layers lay1, lay2, lay3 etc from several points, each points represents events in a 10 minute period.

I am trying to the simulate a loop where shows events every 10 mins (example reports grouped every 10 mins). I am unable to loop and show certain layers and set opacity 0 to the others, I done with images and normal markers, but can relate here.

Even I added a Control Layer to have those lay1,lay2,lay3... in as a layer and let the control show hide but also does not works.

What is the approach... ? thanks
Screenshot (10)

@ERS-Long
Copy link

i found a hack way to hide/show the canvas layer

[your layer]._canvas.style.display="none";

[your layer]._canvas.style.display="block";

@Alberto-Amo-Marin
Copy link

I am having the same problem as @navilaufm
Could you solve that?

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

3 participants