ArcGIS Blog

Mapping

ArcGIS Experience Builder

City snow emergency: Work with layer visibility

By Thomas Coughlin

In this article, I’ll show you how to use layer visibility settings in ArcGIS Experience Builder.

BOSTON, MA – City, county, and regional GIS officials often have access to large amounts of data that they want to make publicly available.

Say you’re making a web app for your city. You have a web map with feature layers for roads and parking lots, but you feel that having them all appear together makes the map look cluttered. One option is to make multiple copies of your web map in Map Viewer, each with different combinations of layers turned on, but you don’t have to do that. You can configure layer visibility in Experience Builder.

Here’s a snow parking web map with multiple overlapping layers…

Web map layers

...and here's a simple app that splits the layers into multiple views. I'll show you how to make it.

If you want to learn more about Experience Builder, I recommend trying this lesson: Get Started with ArcGIS Experience Builder. It goes through the steps of making an app in more detail.

 

Background

If you live in Boston, Massachusetts and you have a car, you need to know what to do with your car during a snowstorm. City officials often declare snow emergencies before major winter storms. During a snow emergency, parking on main roads is banned to keep roads clear for plows and emergency vehicles. If your car stays parked on a main road during a snow emergency, it may get ticketed and towed.

To help residents know what to do with their cars before, during, and after a snowstorm, the city provides a map of restricted streets and designated snow parking lots in addition to posting road signs. You’ll create something similar, using a map with data from BostonGIS as a starting point.

The materials for this lesson include the following:

Boston Snow Resources web map (layers from Esri and BostonGIS)

Boston Snow Emergency template

 

Tutorial

1. Start Experience Builder.

Sign in to ArcGIS or create a free trial account. Go to experience.arcgis.com.

2. Click Create new in the top right corner.

Create new

3. Select a template from the template gallery.

Browse to the ArcGIS Online tab. Search for the Boston Snow Emergency template and click Create to begin.

Select the template

4. Explore the template.

Explore the template

Imagine you’re a GIS manager for the City of Boston and you think the map in this experience is too cluttered, but you feel that all the data is important to show. You’re concerned that when non-GIS folks access the app, they may not know how to switch between different layers using the layer list. It would be useful to have a simple button for switching between different views of the map. This is possible with the Section widget, Views Navigation widget, and by switching layer visibility on the Data tab.

 

Configure layer visibility

1. Move the Map widget to the pending list.

Click Map 1 either in the outline or on the canvas, then click Move to the pending list. This removes the widget from the canvas and saves its configuration for when you need to add it back to the layout.

Move to the pending list

2. Add a Section widget.

From the Insert tab, drag a Section widget into the middle of the canvas. Make it full size, then drag up the lower side so it doesn’t cover the Text and Column widgets at the bottom of the template.

Place the Section widget

3. Add a Views Navigation widget.

From the Insert tab, drag a Views Navigation widget into the empty Column widget in the lower right corner of the canvas.

Views Navigation widget

Choose Tab pills for the Quick style.

Add a Views Navigation widget

The Section widget contains views. The Views Navigation widget lets users switch between them.

4. Add a view.

Click the Section widget. In the widget’s settings on the right, click New view.

New view.

Rename View to Emergency Lots and View 2 to No Parking.

Views

5. Drag Map 1 from the pending list onto the Emergency Lots view. Back in the Section widget settings, click No Parking then add a new Map widget to that view.

Pending list

Make both Map widgets full size.

Full size

6. Add a second copy of the Boston Snow Resources web map to the app.

The second map widget is not connected to any data yet. Browse to the Data tab. You see the Boston Snow Resources web map.

Add data

Click Add data, choose ArcGIS Online, then search for Boston Snow Resources owned by thomascoughlin. Select the web map, and click Done. Rename it Boston Snow Resources 2, then connect Map 2 to Boston Snow Resources 2.

You’ve just added a second copy of the same web map. Now you can edit which layers are visible in each copy of the web map. Connect Map 2 to Boston Snow Resources 2.

Connect the map

Edit Layer Visibility

On the Data tab, click Boston Snow Resources. Click Click to hide (the eyeball button) for the Snow Emergency Routes feature layer.

Click to hide

Click Home, then click Boston Snow Resources 2 and hide the Snow Emergency Parking feature layer.

 

Finalize, save, and publish

Finally, you can format widgets (optional).

Make it easier to tell which view is selected by editing the Views Navigation widget. In the widget’s settings, turn on Advanced, then click Selected and change the font color to the red theme color. This also better draws attention to the widget and helps tell users that they can click to switch views.

 

Advanced settings

You can make additional adjustments, such as changing the theme of the app. Experiment with other settings until satisfied. When finished, publish the experience.

 

More information

For more information about Experience Builder, see the following resources:

 

Share this article

Subscribe
Notify of
5 Comments
Oldest
Newest
Inline Feedbacks
View all comments