add_control {deckgl}R Documentation

Add a control to the widget

Description

Add a control to the widget

Usage

add_control(deckgl, html, pos = "top-right", style = NULL)

Arguments

deckgl

A deckgl widget object.

html

The innerHTML of the element.

pos

The position of the control. Possible values are top-left, top-right, bottom-right and bottom-left.

style

A cssText string that will modefiy the default style of the element.

Examples

deck <- deckgl() %>%
  add_basemap() %>%
  add_control(
    "<h1>Blank Base Map</h1>",
    pos = "top-right",
    style = "background: #004080; color: white;"
  )

if (interactive()) deck

[Package deckgl version 0.2.7 Index]