L.control.browserPrint({ title: 'Just print me!', documentTitle: 'Map printed using leaflet.browser.print plugin', printLayer: L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap', subdomains: 'abcd', minZoom: 1, maxZoom: 16, ext: 'png' }), closePopupsOnPrint: false, printModes: [ L.BrowserPrint.Mode.Landscape(), "Portrait", L.BrowserPrint.Mode.Auto("B4",{title: "Auto"}), L.BrowserPrint.Mode.Custom("B5",{title:"Select area"}) ], manualMode: false }).addTo(map);