library(crosstalk)
library(leaflet)
library(DT)
# Wrap data frame in SharedData
sd <- SharedData$new(quakes[sample(nrow(quakes), 10),])
Bootstrap columns
This obviously breaks my CSS because it pulls in bootstrap
bscols(
leaflet(sd, width = "100%", height = 300) %>%
addTiles() %>%
addMarkers(),
datatable(sd, width="100%")
)
## Assuming "long" and "lat" are longitude and latitude, respectively