Select to view content in your preferred language

Legend doesn't work with secure map services

2602
11
Jump to solution
09-01-2011 05:47 AM
JimmyBrink
Deactivated User
We have secured map services with AGS. I have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try and display my legend using the proxy map layers they will not display with out a login that comes up. If I enter my user and password the legend displays. I also plugged in my rest services from a unsecured AGS server and the legend displays. I looked up the dijit legend api reference and it doesn't have a parameter for the proxy.
Is there a parameter for the Legend digit that will allow you to use the proxy?
Should the legend use the proxy for the rest service?

var legend = new esri.dijit.Legend({
                    map: map,
                   layerInfos: legendLayers
                }, "legendDiv");
                legend.startup();

How anyone experienced this?

Thanks

Jimmy Brink
0 Kudos
11 Replies
RickHendrickson
Occasional Contributor

Excellent work around. Updating the toc.js file worked for me.

Thanks!

Rick

0 Kudos
KevinMacLeod1
Frequent Contributor
António, thank you. 

This worked.
0 Kudos