Unable to get images before LayerName in Legend and TOC

662
2
08-04-2012 03:14 AM
ReddaiahPurma
New Contributor
var fireLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer",{id:'fire'});

var landBaseLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://10.1.0.24/ArcGIS/rest/services/test/MapServer", { id: 'India' });

When i add the above services to map and get Legend or TOC.....i am able to get icons before Layer Name for the fireLayer but it is showing blank for my Local Service Layers ....

I am using proxy.jsp and i provided both service urls in proxy ...

Is that a problem with proxy file or my Local Service...Is there anything more to add in proxy file....


[ATTACH=CONFIG]16665[/ATTACH]
0 Kudos
2 Replies
RamaChintapalli
Esri Contributor
What is the version of your ArcGIS server ?

If the layer is created using ArcGIS Server 10.0 SP1 or higher the legend is generated using the REST Map Service legend resource.

http://<mapservice-url>/legend

If the layers are version 10 or lower the legend is created using the ArcGIS.com legend service. In order to use the ArcGIS.com legend service your map service needs to be publicly accessible and your application must be able to access ArcGIS.com.
0 Kudos
ReddaiahPurma
New Contributor
Version is 10.

Thank You,i will check it once
0 Kudos