AnsweredAssumed Answered

Customize the legend  elements

Question asked by sunilpalkar on Oct 22, 2012
Latest reply on Nov 4, 2012 by sunilpalkar
Hello All,

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

 dojo.connect(map,'onLayersAddResult',function(results){           var layerInfo =, 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();           }         });

Any help will be great...

Thanks in advance : )