I am trying to convert the map with some header text. The header keeps overlapping on the map instead of being above header and displaying the map below. I want to add a log and header besides it and display the map below the header can someone help. I am using open layers verion 7.2.2 to export used jsPDF and creating the canvas using CanvasRenderingContext2D.
Here is an POC of the same where I tried to achieve the same output: - EXPORT to PDF
To move the drawn image down save the context and translate it down
When drawing each part of the image you will need to replace
setTransformwithtransformand usesaveandrestorearound the operationAfterwards restore the context to its default origin and add the header
https://stackblitz.com/edit/angular-nnsvbj?file=src/main.ts