You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a (beautiful!) globe rendered in a shiny page with various monthly oceanographic climatology variables we overlay. When the user selects a new month (from a slider) or a new variable (from a drop down list), the globe is redrawn with the default orientation "rotationlat" = 0 and rotationlong = 0.
Is there a way to capture the current orientation so that we can use those values to set the orientation of the redrawn globe? I can't noodle out how to retrieve those.
Thanks!
Ben
The text was updated successfully, but these errors were encountered:
This should be possible on the most current version 0.3.3 just submitted to CRAN thanks to Jared's new elementId option #89. If all goes well, will be on CRAN soon (fingers crossed).
But it is still a bit tricky, I think the idea will be to use a custom widget ID (elementId) and then use tricks outlined here: https://shiny.rstudio.com/articles/communicating-with-js.html to get the rotation values back in to R via a reactive value.
I'll try to come up with an example, might need advice from @jaredlander .
Hi,
We have a (beautiful!) globe rendered in a shiny page with various monthly oceanographic climatology variables we overlay. When the user selects a new month (from a slider) or a new variable (from a drop down list), the globe is redrawn with the default orientation
"rotationlat" = 0
androtationlong = 0
.Is there a way to capture the current orientation so that we can use those values to set the orientation of the redrawn globe? I can't noodle out how to retrieve those.
Thanks!
Ben
The text was updated successfully, but these errors were encountered: