Use html2canvas instead of dom-to-image

This commit is contained in:
Andreas Hocevar
2021-06-20 23:41:44 +02:00
parent e82a86f563
commit 670ea6db9d
5 changed files with 32 additions and 27 deletions

View File

@@ -83,7 +83,7 @@ exportButton.addEventListener(
}
}
);
const pdf = new jsPDF('landscape', undefined, format);
const pdf = new jspdf.jsPDF('landscape', undefined, format);
pdf.addImage(
mapCanvas.toDataURL('image/jpeg'),
'JPEG',