forked from MapComplete/MapComplete
Bugfixes, add A3 poster
This commit is contained in:
parent
1f87728782
commit
b912343805
14 changed files with 2933 additions and 439 deletions
|
@ -96,12 +96,10 @@ export class PngMapCreator {
|
|||
})
|
||||
await Utils.waitFor(2000)
|
||||
}
|
||||
minimap.TakeScreenshot(format).then(result => {
|
||||
minimap.TakeScreenshot(format).then(async result => {
|
||||
const divId = this._options.divId
|
||||
window.setTimeout(() => {
|
||||
await Utils.waitFor(250)
|
||||
document.getElementById(divId).removeChild(/*Will fetch the cached htmlelement:*/minimap.ConstructElement())
|
||||
|
||||
}, 500)
|
||||
return resolve(result);
|
||||
}).catch(failreason => {
|
||||
console.error("Could no make a screenshot due to ",failreason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue