Delete elements from a map.
Details
Currently supports removal of
"zoomControl"
"layersControl"
"homeButton"
"scaleBar"
"drawToolbar"
"easyButton"
This is mainly useful when taking a static screenshot of a map.
Examples
if (interactive()) {
library(mapview)
map = mapview(franconia)
removeMapJunk(map, "zoomControl")
}