I'm working on creating a legend for one of my web applications. I'm trying to pass the layers I want to appear in the legend but I can't get only those layers to appear in the Legend. I get the whole map. Is there correct syntax to pass an array into the Legend?
<esri:Legend id="myLegend" width="100%" height="100%" scaleX="0.9" scaleY="0.9"
map="{map}"
layers="{mapServiceIDs}"
respectCurrentMapScale="false"/>
Thanks