forked from MapComplete/MapComplete
Experimenting with JS-pdf
This commit is contained in:
parent
b541d3eab4
commit
9d753ec7c0
8 changed files with 727 additions and 5 deletions
|
@ -70,7 +70,7 @@ export default class ExportPDF {
|
|||
console.error(e)
|
||||
self.cleanup()
|
||||
}
|
||||
}, 500),
|
||||
}, 500)
|
||||
})
|
||||
|
||||
minimap.SetStyle(
|
||||
|
@ -166,7 +166,7 @@ export default class ExportPDF {
|
|||
// Add the logo of the layout
|
||||
let img = document.createElement("img")
|
||||
const imgSource = layout.icon
|
||||
const imgType = imgSource.substr(imgSource.lastIndexOf(".") + 1)
|
||||
const imgType = imgSource.substring(imgSource.lastIndexOf(".") + 1)
|
||||
img.src = imgSource
|
||||
if (imgType.toLowerCase() === "svg") {
|
||||
new FixedUiElement("").AttachTo(this.freeDivId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue