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 ?
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-programmatically-a-layer-from-layerlist
https://community.esri.com/thread/221787-show-hide-layers-widget-based-on-portal-named-user-level
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.