add layer values to legend

292
0
07-26-2017 09:36 PM
FaryalSafdar
New Contributor

i have created a legend.

var legend = new Legend({      map: map,      layerInfos: [        {          layer: S_layer,          title: "Factors"        }      ]    }, "legendDiv");     legend.startup();  

now i want to add another attribute of the same layer into the legend. i have seen examples of adding another layer to the legend . but could not find any example of how to add attributes of same layer to the legend. can anyone tell me how to solve this problem?

0 Kudos
0 Replies