Sets a layer's visibility and whether it is selectable in the layer selector.
Setting either visible or visibility_toggle as cur_value() will have no change
in the browser.
Arguments
- rdeck
<
rdeck_proxy> the rdeck proxy object- id
<
string> The layer's identifier must be unique for among all layers of the same type for a map. Defaults touuid::UUIDgenerate(), but should be explicitly defined for updatable layers in a shiny application.- visible
<
boolean> Determines whether the layer is visible or not; also determines whether any legend elements for the layer will be displayed.- visibility_toggle
<
boolean> Whether this layer will appear in the layer selector.