Hi guys, I succeeded in creating legend for single specific layers with the template picker. But now I not able to show it. Better, I can show one legend in one div but if create as many divs as I need no one legend is displayed (firebug display in gray the html code of the legend div ). Why?
layers2.push(new esri.layers.FeatureLayer(****************));
dojo.connect(layers2[0], "onLoad", function (lay) {
var symbols2 = dojo.map(lay.renderer.infos, function (info) {
return { label: info.label,
symbol: info.symbol
};
});
var wdg3= new esri.dijit.editing.TemplatePicker({
//featureLayers: lay,
items: symbols2,
rows: 2,
columns: 2,
showTooltip: true,
style: "height: 100px !important; width: 300px !important;"
}, "testLegend2");
wdg3.startup();
Thank you all very much