Select to view content in your preferred language

How do I filter layers into two or more layerlist widget 4.12?

1363
3
Jump to solution
08-23-2019 09:02 AM
JohanArtica
Emerging Contributor

I have added multiple layers and portal items to my map, my question is if I can separate my layers into two or more layerlists widgets without duplicating the layers in the widget?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
BenElan
Esri Contributor
0 Kudos
3 Replies
SaschaBrunnerCH
Esri Contributor

Hi Johan.

What would you like to achieve? You can group the layerlist with GroupLayer | ArcGIS API for JavaScript 4.12. That is an option to group the layers in one LayerWidget.

0 Kudos
JohanArtica
Emerging Contributor

Hi Sascha,

Thanks for your answer, I would like to have two different layerlist widget in the same map view with different layers each one

0 Kudos
BenElan
Esri Contributor
0 Kudos