Changes one layer's appearance without resending it. remove_layer()
takes it off the map instead.
Arguments
- proxy
Defines which
arc_map_proxy()to modify.- layer
Defines which layer, by the
nameit was added with.remove_layer()acceptsNULLto remove every layer.- visible
default
NULL. Defines whether the layer is drawn.- opacity
default
NULL. Defines the layer opacity, from0to1.
Examples
if (interactive()) {
arc_map_proxy("map") |>
set_layer("Counties", visible = FALSE)
}