watergis/maplibre-gl-export

PDF export for A3 size produces incorrect crop

Closed this issue · 3 comments

Describe the bug
PDF export for A3 size produces incorrect crop

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'Print icon'
  2. Select 'Page size' 'A3'
  3. Select 'Format' 'Landscape'
  4. Pan and zoom desired area

Expected behavior
Selected area is exported as selected

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

PNG and other formats produce correct crop, PDF is the one with issues

@ttolvanen Thank you for raising the issue. I also realized A3 on PDF is exported incorrectly. I don’t have time to look after this now, but welcome any pull request to fix the issue. Thanks!

I am also seeing this with the page size A2