Add a legend to the deckgl widget using a palette func

add_legend_pal(deckgl, pal, ...)

Arguments

deckgl

A deckgl widget object.

pal

A palette function that is used to create the legend elements (colors and labels) automatically.

...

Parameters that are passed to add_legend.

See also

col_numeric et cetera for how to create a palette function.