Relative Content

Tag Archive for shiny

Adding Leaflet Map including LeafletProxy in R Markdown download in Shiny App

I’m attempting to create a Shiny app which includes a map, and a downloadable Markdown report which has a copy of that map. I’m using the mapshot package, since it has the option to remove the zoom controls from the screenshot. However, I’m having difficulty with accessing the map inside the downloadHandler. I’ve tried leaflet(map) and leafletProxy('map), but both of these either return errors or blank images. How can I fix the below code so that the map in the state it is in when the user clicks the button is inserted into the markdown document?

Adding Leaflet Map including LeafletProxy in R Markdown download in Shiny App

I’m attempting to create a Shiny app which includes a map, and a downloadable Markdown report which has a copy of that map. I’m using the mapshot package, since it has the option to remove the zoom controls from the screenshot. However, I’m having difficulty with accessing the map inside the downloadHandler. I’ve tried leaflet(map) and leafletProxy('map), but both of these either return errors or blank images. How can I fix the below code so that the map in the state it is in when the user clicks the button is inserted into the markdown document?

Adding Leaflet Map including LeafletProxy in R Markdown download in Shiny App

I’m attempting to create a Shiny app which includes a map, and a downloadable Markdown report which has a copy of that map. I’m using the mapshot package, since it has the option to remove the zoom controls from the screenshot. However, I’m having difficulty with accessing the map inside the downloadHandler. I’ve tried leaflet(map) and leafletProxy('map), but both of these either return errors or blank images. How can I fix the below code so that the map in the state it is in when the user clicks the button is inserted into the markdown document?