I use jvectormap. I create map. I need to save this svg map as image. I use a plugin named saveSvgAsPng.js. It works ok. My problem is that ,png image makes transparent. Is there a method that I remove svg background transparency? Thanks in advance.
Have you tried looking at the usage Docs for saveSvgAsPng
?
https://github.com/exupero/saveSvgAsPng
saveSvgAsPng(document.getElementById("diagram"), "diagram.png", {backgroundColor: "white"});
Try and pass "white"
or the HEX color value "#FFFFFF"
Pass backgroundColor
in the options object:
Available Options: