Clear all controls from a Mapbox GL or Maplibre GL map in a Shiny app
clear_controls(map)
map
A map object created by the mapboxgl or maplibre function.
mapboxgl
maplibre
The modified map object with all controls removed.