addHomeButton {mapview} | R Documentation |
These functions are deprecated.
Please use leafem::addHomeButton
and leafem::removeHomeButton
instead.
addHomeButton( map, ext, layer.name = "layer", position = "bottomright", add = TRUE ) removeHomeButton(map)
map |
a mapview or leaflet object. |
ext |
|
layer.name |
the name of the layer to be zoomed to (or any character string) |
position |
the position of the button (one of 'topleft', 'topright', 'bottomleft', 'bottomright'). Defaults to 'bottomright'. |
add |
logical. Whether to add the button to the map (mainly for internal use). |
removeHomeButton
: remove a homeButton from a map