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

What is the correct way to reload markers #10

Open
diginikkari opened this issue Apr 9, 2024 · 1 comment
Open

What is the correct way to reload markers #10

diginikkari opened this issue Apr 9, 2024 · 1 comment

Comments

@diginikkari
Copy link

I'm trying to dynamically load markers. I was able to do it using restoreState method, but it is marked as private. What is "correct" way to reload markers?

@ailon
Copy link
Owner

ailon commented Apr 10, 2024

If you mean reloading the markup in an already open marker.js Live instance then there's no official way of doing that. It was made with the assumption of creating a new instance to show each markup object.

I guess if calling restoreState() works for you without side effects, you can use it in a "hacky" way (ignoring the private designation).

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

2 participants