Html2canvas only works if console is open

Hi, I am using Google maps api to draw an area an save it to png with html2canvas. Only works if browser console is open. I delete all console.log in my code but SC add a lot of console.log in the code.

Any idea? Thank you in advance.

msedge_wsk5PbEJnU