diff --git a/R/add_home_button.R b/R/add_home_button.R index 4d57ba92465f96246c97c5e1b6f066ae75d8f276..33fdfa0d630a62d1f8add94682c387400419e0ba 100644 --- a/R/add_home_button.R +++ b/R/add_home_button.R @@ -25,13 +25,6 @@ #' @examples #' extent <- c(-124.409, -114.131, 32.534, 42.009) # California #' make_map(maps = "Topo") |> -#' leaflet::addRectangles( -#' lng1 = extent[1], -#' lat1 = extent[3], -#' lng2 = extent[2], -#' lat2 = extent[4], -#' fill = FALSE -#' ) |> #' add_home_button(extent = extent) add_home_button <- function(map, diff --git a/man/add_home_button.Rd b/man/add_home_button.Rd index a9e80cfe63d4336e5485b8cff9dc6cc726479538..35f739f41980efbb40d37d232c31120a354e5535 100644 --- a/man/add_home_button.Rd +++ b/man/add_home_button.Rd @@ -30,13 +30,6 @@ Add a button to a \href{https://leafletjs.com/}{Leaflet} map that zooms to the p \examples{ extent <- c(-124.409, -114.131, 32.534, 42.009) # California make_map(maps = "Topo") |> - leaflet::addRectangles( - lng1 = extent[1], - lat1 = extent[3], - lng2 = extent[2], - lat2 = extent[4], - fill = FALSE - ) |> add_home_button(extent = extent) } \seealso{