Legends not showing in Legendpanel widget

285
2
02-07-2022 09:44 AM
ADITYAKUMAR1
Occasional Contributor III

Hi,

I am trying to add legend in Lagendpanel with Secured map  services. It works fine when the map service is public,but with  credentials it shows no legend text.

Proxy is set for this file and even in network I can  see a proxy request for legend.

ADITYAKUMAR1_0-1644255770967.png

Has some one encountered a similar problem?

I am using ArcGIS Javascipt 3.x.

 

Thanks

Aditya 

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Hi @ADITYAKUMAR1, I haven't encountered this before. What was the response from the legend request via the proxy? Have you tried a different security method?

https://developers.arcgis.com/javascript/3/jshelp/ags_secureservices.html

I would recommend moving away from the resource proxy.

0 Kudos
ADITYAKUMAR1
Occasional Contributor III

Hi   @Noah-Sager 

When I open the response, I can see all the legends.  Its confusing  for me as well because the response for public and secured services are same but for secured layer the legend is not working.

 

Thanks

Aditya 

0 Kudos