I've been bugging people here for two weeks now to no avail.
I have a project linking maps of a local GeoServer service, what I want is that when I press a button a PDF is downloaded of whatever is on the map. Quite simple, but I haven't been able to get it to work or get any help online.
This is my code
This is what the HTML displays, and what the PDF should look like.
Looking at examples from all these sources
Export PDF from OpenLayers map with jsPDF Export PDF from OpenLayers map with jsPDF https://stackoverflow.com/questions/25698741/download-html-div-into-pdf-using-jspdf https://openlayers.org/en/latest/examples/export-pdf.html https://gist.github.com/ka7eh/88761650efd3425080035e8535230d15 https://github.com/MrRio/jsPDF/blob/master/examples/basic.html https://github.com/mpetroff/print-maps https://jsfiddle.net/crabbly/kL68ey5z/ http://jsfiddle.net/canvasjs/cm1qyk2L/
Did not yield any results whatsoever with me.
I've been working on this for days, why is it not working, what am I missing?
Obviously the code there doesn't work as it doesn't even have a button as I was trying a lot of different things.