0)Legend 1)The legend displays the layers in your map. 2)The legend template has no inputs named legendlayername[].