Skip to content

Commit

Permalink
deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed May 21, 2024
1 parent 87453c0 commit aac519d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/map_layer_h3.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ add_h3 <- function(
#' @rdname clear
#' @export
clear_h3_hexagon <- function( map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE) {
.Deprecated("clear_h3")
clear_h3(map, layer_id = layer_id, update_view = update_view, clear_legend = clear_legend)
}

#' @rdname clear
#' @export
clear_h3 <- function(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE) {
layer_id <- layerId(layer_id, "h3")
invoke_method(map, "md_layer_clear", map_type( map ), layer_id, "h3", update_view, clear_legend )
}

0 comments on commit aac519d

Please sign in to comment.