I want to customize the legend box elements .Please check the screenshot
(I want to remove the highlighted information ...its the map service name and symbol in ArcMap)
How its possible? Is there any way or Are there any parameter in the legend constructor ?? I tried to modify following code but it was not successful..
Code:
dojo.connect(map,'onLayersAddResult',function(results){
var layerInfo = dojo.map(results, function(layer,index){
return {***layer: abc,title: 'new legend'***};
});
if(layerInfo.length > 0){
var legendDijit = new esri.dijit.Legend({
map:map,
layerInfos:layerInfo
},"legendDiv");
legendDijit.startup();
}
});
Thanks in advance : )
