Group layers using layerlist widget

4701
10
Jump to solution
09-22-2015 02:28 PM
LefterisKoumis
Occasional Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

OK, you must have missed this new step for configuring the LocalLayer widget in 1.2 from the GitHub Page.

Important.jpg

View solution in original post

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus

Lefeteris,

I am using the custom widget layerlist

???.. What custom layerlist widget?

0 Kudos
LefterisKoumis
Occasional Contributor III

I mispoke. I meant the LocalLayer widget.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos
LefterisKoumis
Occasional Contributor III

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.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Lefeteris,

   What version of the Local Layer widget are you using and what type are those layers?

0 Kudos
LefterisKoumis
Occasional Contributor III

I am using Local Layer 1.2 and the layers are dynamic since I am trying to display them as groups.

Thanks.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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?

0 Kudos
LefterisKoumis
Occasional Contributor III

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

}

}

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

OK, you must have missed this new step for configuring the LocalLayer widget in 1.2 from the GitHub Page.

Important.jpg

0 Kudos