I am using the custom widget layerlist and I am trying to group layers. I already grouped the layers in ArcMap, as you can see in the services directory screenshot. However, wab lists the layers and not in group (last screenshot). Any ideas? Thank you.
Services Directory
Solved! Go to Solution.
Lefteris,
OK, you must have missed this new step for configuring the LocalLayer widget in 1.2 from the GitHub Page.
Lefeteris,
I am using the custom widget layerlist
???.. What custom layerlist widget?
I mispoke. I meant the LocalLayer widget.
Lefteris,
There is no support in the Local Layer Widget to manually group layers. If you add the whole map service as dynamic then the layer grouping that is defined in the map service will be honored.
Thanks.
Is there a way to avoid to show the name of the folder that the layers are located under on the services directory?
For example, from the screenshot instead of SDSI - ASBS to be just ASBS.
Lefeteris,
What version of the Local Layer widget are you using and what type are those layers?
I am using Local Layer 1.2 and the layers are dynamic since I am trying to display them as groups.
Thanks.
Lefteris,
Can you check your [installDir]\server\apps\[app#]\widgets\LocalLayer\mainfest.json to be sure you have the 1.2 version in that particular app?
Yes, it is.
{
"name": "LocalLayer",
"label": "Local Layer Widget",
"platform": "HTML",
"version": "1.2",
"wabVersion": "1.3",
"author": "Adam Drackley (adam.drackley@gmail.com) & Robert Scheitlin",
"description": "This widget is for adding local layer to Web AppBuilder",
"copyright": "",
"license": "MIT License",
"properties": {
"inPanel": false,
"hasConfig": true,
"hasStyle": false,
"hasUIFile": false
}
}
Lefteris,
OK, you must have missed this new step for configuring the LocalLayer widget in 1.2 from the GitHub Page.