Open FSanba opened 1 year ago
Describe the bug I can't view ImageOverlay if i print de map witch custom button but i can see de overlay in the map. If a i use window.print() i can se ImageOverlay but i cant see special styles with
To Reproduce var imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg', imageBounds = [[lat, lng], [lat+0.02,lng+0.02]]; L.imageOverlay(imageUrl, imageBounds).addTo(map);
var optPrint={ printLayer: currentLayer, closePopupsOnPrint: true, customPrintStyle:{ color: "white", dashArray: "5, 10", pane: "customPrintPane" }, printModes: [L.BrowserPrint.Mode.Auto(),L.BrowserPrint.Mode.Landscape("A4",{title: "A4"}),L.BrowserPrint.Mode.Landscape("A3",{title: "A3"})] ,manualMode: false } var printer=L.control.browserPrint(optPrint) printer.addTo(map);
Desktop (please complete the following information):
Describe the bug I can't view ImageOverlay if i print de map witch custom button but i can see de overlay in the map. If a i use window.print() i can se ImageOverlay but i cant see special styles with
To Reproduce var imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg', imageBounds = [[lat, lng], [lat+0.02,lng+0.02]]; L.imageOverlay(imageUrl, imageBounds).addTo(map);
var optPrint={ printLayer: currentLayer, closePopupsOnPrint: true, customPrintStyle:{ color: "white", dashArray: "5, 10", pane: "customPrintPane" }, printModes: [L.BrowserPrint.Mode.Auto(),L.BrowserPrint.Mode.Landscape("A4",{title: "A4"}),L.BrowserPrint.Mode.Landscape("A3",{title: "A3"})] ,manualMode: false } var printer=L.control.browserPrint(optPrint) printer.addTo(map);
Desktop (please complete the following information):