Add a control to the widget
add_control(deckgl, html, pos = "top-right", style = NULL)
A deckgl widget object.
The innerHTML
of the element.
The position of the control. Possible values are top-left
, top-right
,
bottom-right
and bottom-left
.
A cssText
string that will modefiy the default style of the element.
deck <- deckgl() %>%
add_basemap() %>%
add_control(
"<h1>Blank Base Map</h1>",
pos = "top-right",
style = "background: #004080; color: white;"
)
if (interactive()) deck