The sidebar plugin only works in a reactive environment (e.g Shiny), as the
HTML must be created by using sidebar_tabs and
sidebar_pane and it must be created before
leafletOutput.
Usage
addSidebar(map, id = "sidebar", options = list(position = "left", fit = TRUE))
Arguments
map
A leaflet map widget
id
Id of the sidebar-div. Must match with the id of
sidebar_tabs