Print in 'Current Size' when use vh instead px in the map div
EdgarCsA opened this issue · comments
Edgar Céspedes Sabogal commented
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)
})