Hi everyone!
Is it possible to add a raster layer to a leaflet map in shiny.
This is my ui.R
shinyUI(bootstrapPage(
tags$head(tags$link(rel='stylesheet', type='text/css', href='styles.css')),
gridster(tile.width = 200, tile.height = 200,
gridsterItem(col = 1, row = 1, size.x = 4, size.y = 3,
leafletMap(
"map1", "100%", 600,
initialTileLayer = "http://{s}.
tiles.mapbox.com/v3/jcheng.map-5ebohr46/{z}/{x}/{y}.png",
initialTileLayerAttribution = HTML('Maps by <a href="
http://www.mapbox.com/">Mapbox</a>'),
options=list(
center = c(49.25, 16),
zoom = 4,
maxBounds = list(list(17, -180), list(59, 180))
)
)
)
)
)
and this is the server.R
shinyServer(function(input, output, session) {
map1 <- createLeafletMap(session, 'map1')
}
)
I want to set a calendar selector so every time you set a data a different raster wolud be shown in the map.
Than you in advance