Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to customize the legend box elements .Please check the screenshotlegend (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 =, 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 : )

share|improve this question
Software Details: ArcGIS Server 10.1 & ArcGIS Java script API 3.1 – Sunil Oct 23 '12 at 9:40
up vote 1 down vote accepted

try the following:

go to the table of contents and open the properties of the layer. it looks like you are doing categories for symbols, so uncheck "all other value" on the symbology tab.

now open the legend properties. uncheck "show" for the legend. next, find the style button for the legend and change it to something that is more to your liking.

this should get it down to the required items,


share|improve this answer
Hello gm70560, Thanks for your reply with example link. I will try it and let you know.. thanks once again : ) – Sunil Oct 24 '12 at 4:46
Hi gm70560, I did changes in ArcMap & its works successfully : ) – Sunil Oct 25 '12 at 5:23

Some good references can be found HERE

essentially, you are going to have to modify your CSS.

share|improve this answer
Hi Craig, Thanks for your reply..I will check out and let you know.. Thank you : ) – Sunil Oct 24 '12 at 4:47
Hi Craig, Its works successfully : ) – Sunil Oct 25 '12 at 5:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.