Hi Team,
Is there a way to separate out (like two different Map-Layers widgets in same widget) the list of layers in Map-Layers dynamically based on some characteristics of the layer, for example Editable or Readonly layers. We will load layers dynamically also, so those should also be dynamically should go into the corresponding section.
Any optimal way of customizing the Exp Builder's (V1.16) Map-Layers widget.
could you please suggest me on this.
Thanks in advance
With Regards
A few thoughts:
Hi @JeffreyThompson2 ,
I could able to achieve this by customizing Map-Layers widget to show only editable layers using below additional code line.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibility...
The Map Layers Widget is based on the Layer List Widget of the JavaScript API. I was able to find the line that sets the eyes or checkboxes option in the Widget. It's line 323 in widget.tsx and it is using options from the API. I don't know of any practical way to substitute in the Switch component. Switches themselves are ultimately checkboxes with some fancy CSS. Maybe you can overwrite the CSS and make your own Switch.
https://www.w3schools.com/howto/howto_css_switch.asp