我有以下闪亮的应用:https://ahmadmobin.shinyapps.io/Understanding_STOP/[R单张搜索功能
的“位置”选项卡下,我有一个单张地图。我想将搜索栏移到左侧。如果可能的话,我想也想addResetMapButton()但它是没有必要的。
这里是我的R代码里面:
output$mymap <- renderLeaflet({
leaflet(Locations) %>%
addTiles() %>%
addCircleMarkers(color = Locations$color,clusterOptions= markerClusterOptions,
label=~Official_Name_of_Agency, popup=~geoAddress, group='Locations') %>%
addLegend(labels = c("AA", "CHC", "FHT", "NPLC"), colors = c("black", "purple", "blue", "yellow")) %>%
addProviderTiles(providers$Stamen.TonerLite,
options = providerTileOptions(noWrap = TRUE)) %>%
addSearchOSM(options = searchOSMOptions())
嗨eclark,感谢找回。请参阅下面的回复。周末愉快! –
它似乎并没有工作: style.css file #mymap> div.leaflet-control-container> div.leaflet-top.leaflet-right> div.leaflet-control-search.leaflet-control {margin -left:10px important;} UI: tabItem(tabName =“fourth”, tags $ head(tags = $ link(rel =“stylesheet”,type =“text/css”,href =“style.css “)), leafletOutput(”mymap“,height = 700) ), –