HOW TO

Configure the default layer visibility of multiple Map widgets referencing the same web map in ArcGIS Experience Builder

Last Published: June 16, 2022

Summary

In ArcGIS Experience Builder, layers from web maps or web scenes can be displayed using multiple Map widgets. As the layer visibility of the widgets are based on the default layer visibility of the web map or web scene, web experience audiences have to toggle the Layers option in the Map widget when viewing the experience. However, the layer visibility in the Map widget is reset once the page is refreshed.

This article demonstrates how to configure different default layer visibility for multiple Map widgets instead of using the default layer visibility of the web map or web scene in ArcGIS Experience Builder.

In this example, the web experience contains three different Map widgets on a page referencing the same web map, and three different default layer visibility is desired for each Map widget.

Three Map widgets referencing the same web map with the same layer visibility
Note:
When the web experience contains multiple Map widgets referencing the same web map, each Map widget must be separately connected to the web map.

Procedure

  1. In ArcGIS Experience Builder, in the Data All the data added to the app is listed in the Data pane of the builder workspace. pane, click Add data.
  2. In the Add data window, navigate to the location where the web map is stored. In this example, the web map titled Point Line Polygon 2 is found under the My content tab on the Web Map tab.
  3. On the My content tab, click the web map, and click Done.
Locate the web map and add it as a data source.
  1. In the Data pane, browse to and click the web map card to view its details pane.
  2. In the details pane, browse to the layer, and click the Click to hide Toggle the layer visibility by clicking the Click to hide icon. icon to disable the layer’s visibility when viewing the web map in the Map widget.
Note: 
Occasionally, the feature layer is not displayed in the Map widget after refreshing the web experience configuration page even though the layer’s visibility is enabled. To resolve this issue, enable the layer’s visibility in Map Viewer or Map Viewer Classic.
  1. Click Save Save the experience configurations. to save the experience.

The image below shows three different Map widgets connected to the same web map displaying different layer visibilities in the ArcGIS Experience Builder web experience.

The web map is added three times to the Data panel and is connected to three different Map widgets in the experience.
Note: 
Alternatively, save each map layer individually in several web maps in Map Viewer or Map Viewer Classic, add them to the Data tab in ArcGIS Experience Builder, and connect them to a different Map widget.

Article ID: 000027839

Software:
  • ArcGIS Experience Builder

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

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options