Learn R Programming

leaflet.extras2 (version 1.3.1)

closeSidebar: Close the Sidebar

Description

Close the Sidebar

Usage

closeSidebar(map, sidebar_id = NULL)

Value

the new map object

Arguments

map

A leaflet map widget

sidebar_id

The id of the sidebar (per sidebar_tabs). Defaults to NULL such that the first sidebar is used.

See Also

Other Sidebar Functions: addSidebar(), openSidebar(), removeSidebar(), sidebar_pane(), sidebar_tabs()