jvectormap icon indicating copy to clipboard operation
jvectormap copied to clipboard

How to re-initialise the vectormap?

Open PadharaHitesh opened this issue 6 years ago • 1 comments

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.

PadharaHitesh avatar Dec 07 '18 11:12 PadharaHitesh

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..

katalin2003 avatar Aug 24 '21 08:08 katalin2003