I need to create a pdf from a webpage with a map embedded in it. Im using wkhtmltopdf, elixir-pdf-generator for my wrapper and ng-maps on the front end.
The PDF works fine except for the map portion. The markers are in the right place in relation to the page but the map itself seems to position itself down and to the right of the of the original center. A phenomenon that increases the further you are zoomed out. Note: This only happens on the PDF, the webpage works as intended.
Its not a js delay issue or a resizing issue. The coordinates are correct going to the backend. The map just seems to consistently offset when rendering the pdf. And offsets in the very same way every-time.
Was hoping someone has come across this or maybe point me in the direction of what is causing this.
EDIT: One thing I noticed was setting .gm-style * {transform-none} duplicates the issue in the html. It seems to be losing some transform css somewhere when generating the pdf.