Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageOverlay dont work #118

Open
FSanba opened this issue Aug 26, 2022 · 0 comments · May be fixed by #142
Open

ImageOverlay dont work #118

FSanba opened this issue Aug 26, 2022 · 0 comments · May be fixed by #142

Comments

@FSanba
Copy link

FSanba commented Aug 26, 2022

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<style leaflet-browser-print-content>

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):

  • OS: Windows
  • Browser; Chrome, Safari
  • Version [e.g. 22]
@Falke-Design Falke-Design linked a pull request May 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant