AnsweredAssumed Answered

Credential request only when Layer activated.

Question asked by sch7712 on Jan 14, 2016
Latest reply on Jan 14, 2016 by JordanBaumgardner_GIS

Hello, Is there anyway to delay the JavaScript credential prompt to display when the layer that requires a login is activated?

 

I have a js map and I have multiple layers on it. Only 2 out of the 6 total layers are secured (they are stored on our organization's AGOL account). Like normal, when the map opens, it asks for credentials for AGOL. Is there a way to only have the credential request box display only when the AGOL layers are selected in the Layer list widget?

 

I am still pretty new to js, so I apologize.

 

Thank you!

Outcomes