removeMapJunk | R Documentation |
Delete elements from a map.
removeMapJunk(map, junk = NULL)
map |
the map from which to remove elements. |
junk |
a charcter vector of elements to remove. If NULL (the default), nothing is removed and the map is returned as is. See Details for a list of currently supported elements. |
Currently supports removal of
"zoomControl"
"layersControl"
"homeButton"
"scaleBar"
"drawToolbar"
"easyButton"
This is mainly useful when taking a static screenshot of a map.
if (interactive()) {
library(mapview)
map = mapview(franconia)
removeMapJunk(map, "zoomControl")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.