wbPTI / devPTIpack

https://wbPTI.github.io/devPTIpack/
0 stars 3 forks source link

background is all blank #1

Open takaakimasaki opened 2 years ago

takaakimasaki commented 2 years ago

When you download a map from the app, the background is now all blank. It would be nice to have a background from OpenStreetMap as a default.

somalia_flood

EBukin commented 2 years ago

Yep... Can't fix it. I do not know what is the reason. It seems that there is a problem with the pantomJS and webshot packages. I found this issue, but it does not seems that I there will be any help...

I propose to remove download "png" option leaving only HTML.

EBukin commented 2 years ago

Here is a similar issue...

EBukin commented 2 years ago

Wait a minute! R studio has just developed a new package webshot2! We will use it. It is working also on the secured laptop.

EBukin commented 2 years ago

After converting to webshot2 , errors pops up silently in the logs about chromote package.

2021/11/07 16:22:34.259509185 ​​`google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
2021/11/07 16:22:34.262425035 Warning: Error in initialize: Invalid path to Chrome

Attempting the following workaround: https://community.rstudio.com/t/how-to-properly-configure-google-chrome-on-shinyapps-io-because-of-webshot2/109020

EBukin commented 2 years ago

Linked issues

https://github.com/wch/webshot/issues/72 https://github.com/jbkunst/highcharter/issues/702

EBukin commented 2 years ago

This workaround does not work. We shall try this one too: https://github.com/RLesur/chrome_print_shiny.

EBukin commented 2 years ago

I temporarily remove the png option.