JavaScript API - Base Map Layer List Legend

285
1
10-21-2020 11:09 AM
MatthewDriscoll
MVP Regular Contributor

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",‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍});‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Robert Scheitlin, GISP‌ ?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

No not that I am aware of.

0 Kudos