Have the legend interactive/ dynamic based on selections made with a selector element
At the moment it is necessary to have all the layers visible in a web map that is embedded as an element in the Dashboard. Therefore in the legend element all layers are visible. There is no interaction whatsoever with any filter in Dashboard.