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?
Here is the application: https://arcg.is/1SPHvD0
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.