Skip to content

Commit

Permalink
Merge pull request #224 from episphere/fix-map-png-download
Browse files Browse the repository at this point in the history
Fixed bug where map PNGs were not downloading
  • Loading branch information
LKMason authored Feb 8, 2024
2 parents b335244 + f7deeae commit e513176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/mapPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function downloadMapGrid() {

const temporaryDiv = document.createElement("div")
temporaryDiv.className = "d-flex flex-column gap-2 p-3"
temporaryDiv.appendChild(document.getElementById("graph-title").cloneNode(true))
temporaryDiv.appendChild(document.getElementById("plot-title").cloneNode(true))
temporaryDiv.appendChild(legend)
temporaryDiv.appendChild(temporaryGrid)
return downloadElementAsImage(temporaryDiv, "epitracker-map")
Expand Down
1 change: 1 addition & 0 deletions src/utils/download.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {json2other} from "./../shared.js";
import html2canvas from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'

export function toggleLoading(spinnerId, downloadId, isShow) {
const spinner = document.getElementById(spinnerId)
Expand Down

0 comments on commit e513176

Please sign in to comment.