Clears elements from a map
Clears elements from a map
clear_animated_arc(map, layer_id = NULL, update_view = TRUE)clear_line(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_arc(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_bitmap(map, layer_id = NULL, update_view = TRUE)
clear_column(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_geojson(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_greatcircle(
map,
layer_id = NULL,
update_view = TRUE,
clear_legend = TRUE
)
clear_grid(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_h3_hexagon(map, layer_id = NULL)
clear_heatmap(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_hexagon(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_line(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_mesh(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_path(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_pointcloud(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_polygon(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_scatterplot(
map,
layer_id = NULL,
update_view = TRUE,
clear_legend = TRUE
)
clear_screengrid(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_terrain(map, layer_id = NULL, update_view = TRUE)
clear_text(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
clear_title(map, layer_id = NULL)
clear_trips(map, layer_id = NULL, update_view = TRUE, clear_legend = TRUE)
a mapdeck map object
the layer_id of the layer you want to clear
logical indicating if the map should update the bounds after removing the layer
logical indicating if the legend should be removed