Select to view content in your preferred language

show layers

138
2
3 weeks ago
Antonio_Fraga
Emerging Contributor

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!

🗺

0 Kudos
2 Replies
AndreV
by
Regular Contributor

Hi Antonio,

You should use a webmap from Portal or Archos online.

gdi-hohenlohekreis.de
JamesIng
Frequent Contributor

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.

James from www.landkind.com
0 Kudos