Controling scene layers with a button

386
2
08-13-2021 10:36 AM
Labels (1)
DavidRasner1
New Contributor III

Hello,

I'm wondering if there is a simple way how to control multiple layers (on/off).

I'm trying to give the user an option to switch between different legends and colors using a button.

Something like this:

DavidRasner1_0-1628875964934.pngDavidRasner1_1-1628875990317.png

DavidRasner1_2-1628876021745.png

All I need is a button to turn certains layers on and off. But I don't see a way without the API. 🤔

Tags (3)
0 Kudos
2 Replies
RussellRoberts1
Esri Frequent Contributor

Can you load a web scene and have your layers combined into group layers? You can author this web scene with scene viewer and load it into experience builder.

DavidRasner1
New Contributor III

Thanks for the reply @RussellRoberts1 

I guess I could create multiple pages, or sections withs different maps, for different topics. That would be good enough for a demo.

But the way I see it, the proper way is a custom widget. I'm looking to get some help from a JS DEV.

I was hoping I can recreate the c-through demo: https://esri.github.io/c-through/

 

0 Kudos