I have a map from 2gs on my site. And you need to make a screen of this block with a map on js, decided to use the html2canvas library and when the script does this it turns out like this. Please tell me how can I fix it? enter image description here

html2canvas(document.querySelector("#map"), { }).then(canvas => { $('#test-img').append(canvas); }); 

    0