Small fixes

This commit is contained in:
Pieter Vander Vennet 2021-07-27 22:38:30 +02:00
commit 55539b7c3a
263 changed files with 13321 additions and 2357 deletions

View file

@ -23,12 +23,16 @@
//minimap op index.html -> hidden daar alles op doen en dan weg
//minimap - leaflet map ophalen - boundaries ophalen - State.state.featurePipeline
screenshotter.addTo(State.state.leafletMap.data);
let doc = new jsPDF('l');
let doc = new jsPDF('landscape');
console.log("Taking screenshot")
screenshotter.takeScreen('image').then(image => {
if(!(image instanceof Blob)){
alert("Exporting failed :(")
return;
}
let file = new PDFLayout();
file.AddLayout(layout, doc, image);
console.log("SCREENSHOTTER");
doc.save(name);
})
}
}
}