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

How to re-initialise the vectormap? #450

Open
PadharaHitesh opened this issue Dec 7, 2018 · 1 comment
Open

How to re-initialise the vectormap? #450

PadharaHitesh opened this issue Dec 7, 2018 · 1 comment

Comments

@PadharaHitesh
Copy link

I have initialise the chart on ajax success, but when fire datepicker change event then call ajax, chart dublicated..!!

So any destroy and remove event of that.

@katalin2003
Copy link

Hello @PadharaHitesh. Did you find a way to do this? What I'm currently doing is setting the innerHTML of map container to empty and run the new jvm.WorldMap again. BUT this seems to create errors on viewport resizing (1 out 3 times) as it doesn't properly detect the size of the container. Not sure if this makes sense :)
For debugging purposes, if I just hide the previous container and create a new one, I no longer get those errors. So this leads me to believe that somehow, a reference to the first map container is kept somehow..

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