leaflet-easyPrint icon indicating copy to clipboard operation
leaflet-easyPrint copied to clipboard

Print in 'Current Size' when use vh instead px in the map div

Open EdgarCsA opened this issue 2 years ago • 1 comments

When using "vh" instead "px" in the div height, the Current mode does not work well.

In order to solution, I changed the code

domtoimage.toPng(plugin.mapContainer, {
        width: parseInt(widthForExport),
        height: parseInt(plugin.mapContainer.clientHeight)
      })

EdgarCsA avatar Oct 28 '22 21:10 EdgarCsA

would you be able to give me some info on how i can implement this fix in my version, I am getting the problem referenced here: https://github.com/rowanwins/leaflet-easyPrint/issues/76

GlenLamb avatar Feb 14 '23 12:02 GlenLamb