Search code examples
pythonprintingleafletoverflowpdfkit

Leaflet PDF page break overflow


I'm currently working on an automated report that includes leaflet maps.

The issue that I am facing is that when I place a map following a page break, I get overflow issues.

The issues are similar to those found here

Though none of the prosposed fixes helps me out. Does anyone have a solution for this?


Solution

  • I supposse you solved this, but if not, I found the solution.

    In html, before you import leaflet.js add:

    <script>L_DISABLE_3D = true;</script>
    

    And works fine!