-
Notifications
You must be signed in to change notification settings - Fork 506
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
feat: Use stable leaflet.providers html dep if available #884
Conversation
Looks like this is a better version of #803. I was just coming across this problem yet again, so I'm glad it's being fixed. |
@jaredlander Ah sorry, I didn't realize there was prior work on this, I kinda just dropped in without a ton of context. Thanks for your previous PR and the interim fix! Barret and I did discuss doing something similar to what you proposed (picking a stable place to put the dependency file), but I think this approach will end up being a little easier to work with in the long run. End users won't have to think about any intermediate files and knitr/quarto caching should just work ™🤞. If you're running into this now and have the ability to test this PR with remote::install_github(c("rstudio/leaflet#884", "rstudio/leaflet.providers#36")) |
@gadenbuie I'm just happy for whatever makes it work. I'll try the PR versions soon hopefully. Right now I'm fighting an uphill battle trying to use |
@schloerke The failure here is related to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
If you any browser that will follow the chrome devtools protocol, you may use it. Example of using I hope you find a path forward with your WebGL screenshots. |
If there was a completely headless server (with no GUI), I'd be more inclined to install that. Do you know any? |
Fixed an issue caused by a stability fix from leaflet [#884](rstudio/leaflet#884) where the tonerLite base map did not work and so would stop points from showing on the map.
Fixes #732
Fixes #843
Closes #803
For rstudio/leaflet.providers#34
This PR pairs with rstudio/leaflet.providers#36 to use the html dependency created by leaflet.providers, if available.
With the latest version of leaflet.providers, leaflet will use a stable html dependency that will not change between R sessions and will, in general, be consistent in the knitr cache (excepting package updates which should break the cache anyway).
In the presence of an older version of leaflet.providers, leaflet will still create a temporary html dependency, so this is a backwards-compatible change.
With
rstudio/leaflet.providers#36
loaded, you'll see:And for versions other than the bundled leaflet-providers: