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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.