Legend not showing up...

471
1
11-04-2012 07:49 AM
ZahidChaudhry
Occasional Contributor III
I have added following two lines but still legend is not showing up..
[HTML]
esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx";
esri.config.defaults.io.alwaysUseProxy = true;[/HTML]
I can see that its accessing proxy and it is configure correctly but when it tries to get layerinfo, its not using proxy so cant get legend info because of cross origin issue.."is not allowed by Access-Control-Allow-Origin."


0 Kudos
1 Reply
__Rich_
Occasional Contributor III
Which version of ArcGIS Server are you running?

If it's less than v10 SP1 then the JS API will try and use arcgis.com to generate the legend.
0 Kudos