add_layer: Add any kind of layer to the deckgl widget

Description Usage Arguments Value

View source: R/layers.R

Description

Generic function to add any kind of layer to the deckgl widget. Usually you will not use this one but any of the add_*_layer functions instead.

Usage

1
2
add_layer(deckgl, class_name, id, data = NULL, properties = list(),
  ..., tooltip = NULL, source = NULL)

Arguments

deckgl

A deckgl widget object.

class_name

The name of the JavaScript layer class, e. g. ScatterplotLayer.

id

The unique id of the layer.

data

The url to fetch data from or a data object.

properties

A named list of properties with names corresponding to the properties defined in the deckgl-api-reference for the given layer class.

...

More properties that will be added to the properties object. This can be useful if you want to use a properties object for more than one layer.

tooltip

A tooltip template that defines what should be displayed when the mouse enters an object. You can also pass a list with the properties html and style. See also use_tooltip.

source

The ID of the data source ...

Value

A deckgl widget object.


deckgl documentation built on July 1, 2020, 7:36 p.m.