1 - I create a map, called myMap.
2 - myMap contains 3 layers.
3 - if i comment the ", layerInfos..." line below, the legend appears correctly, displaying symbology for the three layers.
4 - if i remove the comment from the ", layerInfos..." line below, a"no legend" sign appears
5 - Firebug...