Hello members of the ESRI community,
I’m starting to work with Calcite and would like to create an application that can basically load a set of predefined layers when the application starts. These layers should have a series of actions (enable, disable, transparency).
I’ve decided to use the list component to manage this. My question is: what’s the best way to specify the layers that should be preloaded? Perhaps through a configuration file?
I’m not sure what the best practice would be in this case. An example would also be very helpful.
Thank you very much!
🗺
Hi Antonio,
You should use a webmap from Portal or Archos online.
This existing sample might be a good starting point.
https://developers.arcgis.com/javascript/latest/sample-code/layer-list-actions/
It shows how you can config a layerlist widget to control what layers are shown, and control transparency.