Using the Mapdeck library in R Shiny, is there a way to capture the view state of the map for use server side?

64 views Asked by At

I am using mapdeck in an R Shiny Project. When the user pans/pitches/rotates/zooms the map I would like to know what the current view state is, so that I can use the new values of lat, lon, pitch, bearing, zoom on the server side.

I know I can use show_view_state = TRUE in the main mapdeck call, so is there a way to capture these values? I'd like the current view state (as displayed on the map when I use show_view_state = TRUE) to be captured into a variable on the server side code which I can use and manipulate.

0

There are 0 answers