add_control: Add a control to the widget

View source: R/controls.R

add_controlR 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

crazycapivara/deckgl documentation built on March 29, 2023, 4:10 a.m.