Reset transform in addition to globalAlpha

This commit is contained in:
mike-000
2022-08-08 10:05:36 +01:00
committed by GitHub
parent 14d1ac0c7a
commit e6b8fed64a

View File

@@ -84,6 +84,7 @@ exportButton.addEventListener(
}
);
mapContext.globalAlpha = 1;
mapContext.setTransform(1, 0, 0, 1, 0, 0);
const pdf = new jspdf.jsPDF('landscape', undefined, format);
pdf.addImage(
mapCanvas.toDataURL('image/jpeg'),