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)

[ATTACH=CONFIG]18636[/ATTACH]

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 = 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();           }         });


Any help will be great...

Thanks in advance : )

Attachments

Outcomes