When I change the input in the selectInput selector to show various groupings on the map, the full dataset shows up and doesn't change when the input changes.
ui <- dashboardPage(
dashboardHeader(title = "Businesses in South Bend"),
dashboardSidebar(),
dashboardBody(
fluidPage(
titlePanel("Business by Type"),
sidebarLayout(
sidebarPanel(
selectInput(inputId = 'Classifi_1',
label = 'Choose Business Type',
choices = unique(df_tidy$Classifi_1),
selected = 'TAXI VEHICLE')
),
mainPanel(
tabsetPanel(
tabPanel(title = 'Map',
leafletOutput(outputId = 'mymap'))
)
)
)
)))
server <- function(input, output) {
output$mymap <- renderLeaflet({
leaflet()%>%
addTiles()%>%
addMarkers(data = df_tidy, popup = df_tidy$Business_N)
})
}
I tried adding a selected part of the selectInput and it still showed all the data points and still nothing changed when input changed.