Skip to content

Example to use triple dots (...) to pass additional parameters that will be forwarded to deck.gl javascript #113

Answered by anthonynorth
WV-Habitat asked this question in Q&A
Discussion options

You must be logged in to vote

Triple dots: There's no documented examples of passing additional params to rdeck() or layers, but I've included one below.

Expanding the layer selector: There's currently no R interface for controlling expand/collapse of the {rdeck} layer selector. The stackoverflow answer is specific to leaflet.

Silly example of passing additional params:

library(rdeck)

symbols <- c("", "", "", "", "", "", "", "", "")
points <- data.frame(
  position = xy(runif(100, -180, 180), runif(100, -85, 85)),
  value = rnorm(100),
  text = sample(symbols, 100, TRUE)
)

rdeck(initial_bounds = points) |>
  add_text_layer(
    data = points,
    get_position = position,
    get_text = text,
    get_color =

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WV-Habitat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants