HOW TO

Display group layers in ArcGIS Web AppBuilder

Last Published: August 24, 2023

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

The image of Map Viewer supporting the visualization and configuration of group layers.

In the ArcGIS Web AppBuilder Layer List widget

The image of ArcGIS Web AppBuilder not supporting 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 Click here to add widget > Layer List > 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 Subway Stations, Public Bicycles, and Subway Lines.
    3. Click OK.
The Layer List widget providing a list of operational layers and their symbols, and allowing 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 image of the group layers being 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 Layer Manager 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. Rename the group, and drag the desired layers into the group.
The image of the group layers being created in the Scene Viewer Layers pane.
  1. On the Designer toolbar, click Save to save the scene.
  2. Click View item details on the banner at the bottom of the scene. Alternatively, open the item details page from ArcGIS Online.
The image of 'View item details' on the banner at the bottom of the scene.
  1. On the item details page, click Create Web App > Web AppBuilder.
  2. In the Create a New Web App window, configure the Title and Tags fields, and click OK.
  3. In ArcGIS Web AppBuilder, on the Widget tab, click Set the widgets in this controller.
  4. On the Widget tab, click Click here to add widget > Layer List OK.
  5. In the Configure Layer List window, click OK.
  6. 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 image of the group layers being 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.

Article ID: 000026548

Software:
  • ArcGIS Web AppBuilder
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options