jvectormaps remove

jvectormaps remove

Hello im using jvectormap, and first i got a problem when i loaded the map, but i fixed that with the code to load map if the box is shown, but now i got the trouble that, everytime i click on the show button a new instance of a map is loaded, so my question is how can i remove map before i load the new one so i only get one instance of a map?


Now i bumped into an error, that i need to know BEFORE i load the new map if there is a map there, and if so remove it.