English

How To: Display group layers in ArcGIS Web AppBuilder

Summary

In ArcGIS Online, Map Viewer allows users to create and manage group layers in a web map. However, it is a known limitation that ArcGIS Web AppBuilder does not support web maps with group layers as stated in the 'Which apps can use Group Layers?' section of this ArcGIS Blog.

When creating an ArcGIS Web AppBuilder app using a web map with group layers, the group layers are flattened to individual layers in the Layer List widget.

In the Map Viewer Layers pane

Map Viewer supports the visualization and configuration of group layers.

In the ArcGIS Web AppBuilder Layer List widget

ArcGIS Web AppBuilder does not support group layers.

This article provides several alternatives to display group layers in the ArcGIS Web AppBuilder Layer List widget.

Procedure

Use one of the following options to display group layers in ArcGIS Web AppBuilder or ArcGIS Online web apps that support group layers.

Create multiple Layer List widgets and configure them to display the group layers

In ArcGIS Web AppBuilder, add multiple Layer List widgets, and group them to display the group layers.

  1. In ArcGIS Web AppBuilder, on the Widget tab, click Set the widgets in this controller.
  2. On the Widget tab, click the Click here to add widget button, click Layer List, and click OK.
  3. In the Configure Layer List window, set the following parameters:
    1. Name the widget according to the group layer’s name. In this example, the Layer List widget is Group 1.
    2. Under Choose which layers will be shown on the list, uncheck the non-related layers. In this example, the group layer named Group 1 comprises the layers titled Single Point, Polygon, Point, and Line.
    3. Click OK.
The Layer List widget provides a list of operational layers and their symbols, and allows users to turn individual layers on and off.
  1. Repeat Steps 2 and 3 for all the other group layers.
  2. On the Widget tab, in the Widgets pane, drag and drop all the Layer List widgets to create a widget group.
Drag and drop to group the Layer List widgets together.
  1. On the Widget tab, hover over the widget group, and click Configure.
Configure the widget group to rename it.
  1. In the Configure window, specify a name for the widget group, and click OK. In this example, the group is named Layer List.
  2. On the Widget tab, click Save to save the configurations.

The image below shows the layers grouped accordingly in the ArcGIS Web AppBuilder Layer List widget.

The group layers are displayed in different Layer List widgets accordingly in ArcGIS Web AppBuilder.

Create an ArcGIS Web AppBuilder app using a scene with group layers

Instead of using a web map, use a scene with group layers to create an ArcGIS Web AppBuilder app in ArcGIS Online.

  1. In Scene Viewer, create a new scene, and add the desired layers to it.
  2. In the Layers pane, browse to a layer, click More Options Click the More Options button to display the drop-down list., and select Add to new group.
  3. Name the group, and drag the desired layers into the group.
Group layers are created in the Scene Viewer Layers pane.
  1. On the Designer toolbar, click Save to save the scene.
  2. On the upper-right toolbar of the scene, click Share > CREATE A WEB APP.
  3. In the Create a Web App window, on the Web AppBuilder tab, configure the Title and Tags fields, and click DONE.
  4. In ArcGIS Web AppBuilder, on the Widget tab, click Set the widgets in this controller.
  5. On the Widget tab, click the Click here to add widget button, click Layer List, and click OK.
  6. In the Configure Layer List window, click OK.
  7. On the Widget tab, click Save to save the configurations.

The image below shows the group layers displayed in the ArcGIS Web AppBuilder Layer List widget.

The group layers are displayed in ArcGIS Web AppBuilder.

Use compatible ArcGIS Online web apps to view the web map’s group layers

Create ArcGIS Online web apps that support group layers for the web map, such as ArcGIS Experience Builder, ArcGIS Instant Apps (Interactive Legend, Minimalist, and Media Map), and ArcGIS StoryMaps. Refer to ArcGIS Online: Create apps from maps for more information.

Related Information

Last Published: 10/6/2021

Article ID: 000026548

Software: ArcGIS Online 9.3, 9.2, 9.1