Clear all controls from a Mapbox GL or Maplibre GL map in a Shiny app
clear_controls(map)
map
mapboxgl
maplibre
The modified map object with all controls removed.
Useful links