clear_controls function

Clear all controls from a Mapbox GL or Maplibre GL map in a Shiny app

Clear all controls from a Mapbox GL or Maplibre GL map in a Shiny app

clear_controls(map)

Arguments

  • map: A map object created by the mapboxgl or maplibre function.

Returns

The modified map object with all controls removed.

  • Maintainer: Kyle Walker
  • License: MIT + file LICENSE
  • Last published: 2025-03-18