Select to view content in your preferred language

Legend not showing up...

534
1
11-04-2012 07:49 AM
ZahidChaudhry
Deactivated User
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_
Deactivated User
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