Hiding a Layer in LayerList Widget while Layer is still Activated (ArcGIS Javascript API 3.23)

584
2
07-22-2020 12:05 PM
NicoKroes
New Contributor II

Hello:

We are currently using the ArcGIS API for Javascript 3.23 to create a web application. The requirements for this web application require that a layer be removed from the LayerList widget, but still have the ability to have popups visible in the map. I did some research and noticed that there is a listmode property in the 4.x version of the ArcGIS API for Javascript. Is there a way we can achieve this same functionality in the 3.23 version of the ArcGIS API for Javascript?

Thanks in advance,

Nico

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Nico,

   You can specify the layers in the widget using the layers property

https://developers.arcgis.com/javascript/3/jsapi/layerlist-amd.html#layers 

0 Kudos
NicoKroes
New Contributor II

Thank you Robert Scheitlin, GISP‌. I will look into that solution.

0 Kudos