Placing leaflet controls side-by-side instead of vertically stacked in R/Shiny with HTML/CSS
- 阅读更多 关于 Placing leaflet controls side-by-side instead of vertically stacked in R/Shiny with HTML/CSS
问题 What I want to do is pretty simple: I want my leaflet controls to be aligned side-by-side in rows rather than vertically as columns (as leaflet automatically does). Here is some short example code: library(shiny) library(leaflet) shinyApp( ui <- fluidPage( leafletOutput("map", width = "100%"), tags$head(tags$style(HTML(".leaflet-control-layers-overlays {width: 190px;}"))) ), server <- function(session, input, output){ output$map <- renderLeaflet({ leaflet() %>% addProviderTiles("Esri