-
Notifications
You must be signed in to change notification settings - Fork 32
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
screenshooting a map with leafgl layer doesnt work #59
Comments
Did you also try https://github.com/rstudio/webshot2? |
If we expose the option No, I didnt try webshot2 yet. |
Indeed, |
That's good news I guess. I've been waiting for RStudio to push webshot2 to CRAN and rewrite mapshot accordingly which currently uses webshot. Until then, a fix using |
I dont think this is really a
leafgl
error and more a bug of the underlying JS-libraries (webshot, html2canvas, FileSaver?) but taking a screenshot of a map withleafgl
data doesnt display the layer in the resulting image.I tried several approaches to take a screenshot;
mapview::mapshot
,shinyscreenshot::screenshot
andleaflet.extras2::addEasyprint
.Here's a shiny app which tries all those methods:
The text was updated successfully, but these errors were encountered: