Select to view content in your preferred language

Disable Layers at Runtime

459
1
04-10-2020 06:59 AM
ThomasNuernberger
Emerging Contributor

Situation:

  Web App Has Three Layers   A, B, and C.  Each user has his/her own permissions. So for example, how would I disable layers A and C for USER1, and have all layers available for USER2. Is there an example somewhere ? 

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Tom,

   There is not a simple step by step for this but you can achieve your goal by taking portions from a couple of threads.

https://community.esri.com/groups/web-app-builder-custom-widgets/blog/2019/02/21/exclude-programmati... 

https://community.esri.com/thread/221787-show-hide-layers-widget-based-on-portal-named-user-level 

0 Kudos