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.
add_layer(deckgl, class_name, id, data, properties = list(), ...)
deckgl widget
name of the js layer class, e. g. ScatterplotLayer
id of the layer
url to fetch data from or data object
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
deckgl widget