AnsweredAssumed Answered

How to toggle layers in Javascript API webmap

Question asked by BFlanaganesriuk-esridist Employee on Sep 26, 2016
Latest reply on Sep 30, 2016 by BFlanaganesriuk-esridist


I am currently developing a simple web application using version 3.17 of the API.

I have created a webmap in ArcGIS Online and am using the utility function to pull the map into my app. The webmap contains 3 layers and I need the ability to toggle between each layer.

I have tried using the Layer List widget, however, I only want to have one layer visible/active at a given time.

Any advice on the best method to do this would be greatly appreciated!