
Last chance! 50% off unlimited learning
Sale ends in
These functions are deprecated.
Please use leafem::addHomeButton
and leafem::removeHomeButton
instead.
addHomeButton(
map,
ext,
layer.name = "layer",
position = "bottomright",
add = TRUE
)removeHomeButton(map)
a mapview or leaflet object.
the name of the layer to be zoomed to (or any character string)
the position of the button (one of 'topleft', 'topright', 'bottomleft', 'bottomright'). Defaults to 'bottomright'.
logical. Whether to add the button to the map (mainly for internal use).
removeHomeButton
: remove a homeButton from a map