slight problem with leaflet and flexdashboard

199 views
Skip to first unread message

MySchizo Buddy

unread,
May 28, 2016, 3:02:38 PM5/28/16
to Shiny - Web Framework for R


Using the zoom button on a leaflet map causes the map height to increase, pushing any text above the map. This happens in Rstudio only and not in Firefox
Use this working code


---
title
: "Quakes"
output
: flexdashboard::flex_dashboard
runtime
: shiny
---
```{r setup, include=FALSE}

library(flexdashboard)
library(leaflet)

data(quakes)
```



Load Data
=====================================  

### Location Map

```{r}

p("Following are quake locations.")

renderLeaflet({
  leaflet(data = quakes[1:20,]) %>% addTiles() %>%
  addMarkers(~long, ~lat, popup = ~as.character(mag))
})
```



Before and after images are attached.

Reply all
Reply to author
Forward
0 new messages