Learn R Programming

deckgl (version 0.2.5)

add_layer: Add any kind of layer to the deckgl widget

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

add_layer(deckgl, class_name, id, data, properties = list(), ...)

Arguments

deckgl

deckgl widget

class_name

name of the js layer class, e. g. ScatterplotLayer

id

id of the layer

data

url to fetch data from or data object

properties

named list of properties with names corresponding to the properties defined in the deckgl-api-reference for the given layer class, additionally there is a getTooltip property (callback) showing a tooltip when the mouse enters an object, e. g. getTooltip = JS("object => object.name")

...

more properties (will be added to the properties object), useful if you want to use a properties object for more than one layer

Value

deckgl widget