Reset globalAlpha back to its initial after mutating it for drawing layers

This commit is contained in:
Amir
2022-02-09 01:50:00 +02:00
parent 97a1c196cc
commit 1acf62b6e6
2 changed files with 2 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ document.getElementById('export-png').addEventListener('click', function () {
}
}
);
mapContext.globalAlpha = 1;
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(mapCanvas.msToBlob(), 'map.png');