From 817b3cd86806d51e35fb8ecfe88a70b1160e8d81 Mon Sep 17 00:00:00 2001 From: dcooley <=> Date: Thu, 16 May 2024 09:55:01 +1000 Subject: [PATCH] clear h3 --- R/map_layer_h3.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/map_layer_h3.R b/R/map_layer_h3.R index 9968db72..db079e5c 100644 --- a/R/map_layer_h3.R +++ b/R/map_layer_h3.R @@ -183,7 +183,7 @@ add_h3 <- function( #' @rdname clear #' @export -clear_h3_hexagon <- function( map, layer_id = NULL) { +clear_h3_hexagon <- 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_hexagon" ) + invoke_method(map, "md_layer_clear", map_type( map ), layer_id, "h3_hexagon", update_view, clear_legend ) }