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