Empty file on first click
dario85-dev opened this issue · comments
dario85-dev commented
this.printControl = (L as any).easyPrint({
title: 'Print Me',
position: 'bottomleft',
sizeModes: ['Current'],
filename: this.uid,
exportOnly: true,
tileWait: 4000,
hidden: true,
hideControlContainer: true
}).addTo(this.map);
this.printControl.printMap('CurrentSize');
if i trigger button a second time the map is downloaded correctly.
lorem ipsum commented
Can you share the Current
object you're trying to use?
Like this:
const currentView = {
width: $("#map").width(),
name: 'Current View',
height: $("#map").height(),
className: 'MyClassName',
tooltip: 'Current View Port'
}