Is it possible to create a Base Map Layer List Legend similar to the way it can be done with a Layer List like this sample?
const basemapLayerList = new BasemapLayerList({
view: theView,
listItemCreatedFunction: function (event) {
const item = event.item;
if (item.layer.type != "group"){
item.panel = {
content: "legend",
open: true,
};
}
}
});
theView.ui.add(basemapLayerList,{
position: "top-right",});
No not that I am aware of.