Select to view content in your preferred language

Allow Conditional Selection in Layer List

564
1
03-09-2021 09:07 AM
LucasRosen
Emerging Contributor

Hello,

I am trying to build a web application that allows users to select one of two layers but not have both open at the same time. Is there a way to do that?

LucasRosen_0-1615309455093.png

Here is the application: https://arcg.is/1SPHvD0

 

 

Thank you,

 

Lucas Rosen

 

 

0 Kudos
1 Reply
LefterisKoumis
Frequent Contributor

I don't know what is your level of JS experience but here is a post for the same issue. You can use the same script to select a layer to be visible or not.

https://community.esri.com/t5/web-appbuilder-custom-widgets/make-layer-visible-after-layerlist-widge...

0 Kudos