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 show no errors
var myMap = initMap();var legendDijit = new Legend({ map: myMap , layerInfos: {layer: myMap.getLayer(myMap.layerIds[2])}}, "legendDiv");legendDijit.startup();thanks
أكثر...
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 show no errors
var myMap = initMap();var legendDijit = new Legend({ map: myMap , layerInfos: {layer: myMap.getLayer(myMap.layerIds[2])}}, "legendDiv");legendDijit.startup();thanks
أكثر...