ArcGIS Online

Try out layer groups with Map Viewer Beta

Does your Web Map suffer from… a confusing Table of Contents?  Do you have dozens of layers begging to be organized thematically in a group which can be easily turned on and off? Based on the most popular ArcGIS Online idea on ArcGIS Ideas and the number of people I have chatted with over the years, the answer is resoundingly “YES”. Although it would have been ideal to celebrate the debut of Layer Groups with more than 20,000 of the best customers in the world in-person, 2020 has sabotaged these best laid plans. Nevertheless, we are happy to introduce Layer Groups with the July 2020 update to Map Viewer Beta and look forward to seeing the maps and apps you create with them. The following article will provide a brief introduction about how to create Layer Groups and two common use cases.

Creating groups of layers in Map Viewer Beta is easy and intuitive. Add your desired layers to the map and then follow the four steps below.

  1. Open the Layer Options and select Add to new group
  2. Name the group
  3. Drag and drop additional layers into the group
  4. Enjoy the additional organization in your Layers Panel
New Add to Group option for layers

Layer Groups: Some Practical Examples

Improve Layer Interaction and Exploration

Use layer groups to enable the ability to turn layers of a specific theme on and off. This is a common workflow for all-encompassing maps, like a master Utility Map or a map of all Government Assets. In the case of the utility map, there can often be over 50 layers which results in a challenging list for users to interact with. By grouping the layers into themes, like water, storm and sanitary, it is easier to find the desired layer and explore the data. Even without a large amount of layers, grouping improves the ease of interaction can be helpful in many focused applications. (* authors note. I always recommend creating a focused application that only includes the layers and tools that are needed. Please use the power of Layer Groups responsibly)

Group Layers with minimalst

In the example above, I created two groups of layers, to more easily understand and manage the related data. One group contains layers that show subway stations and routes in Toronto. Another group contains the routes of street cars and buses. With Layer Groups, my audience can easily turn off the Subway layers if they want to concentrate just on the bus and streetcar routes. Additionally, the visibility of each layer in the group can be controlled individually once the Layer Group is expanded.

Show more levels of geography for a single dataset.

As geographers we understand that data and patterns can vary significantly depending on the level of geography that you are viewing. For example, when exploring a dataset about how Americans get to work, data aggregated by state shows that commuters predominantly drive alone. A few anomalies appear at the county level, showing some counties where the majority of the population doesn’t drive alone. At the tract level, several tracts in New York City have different predominant modes of transportation to work. The ability to show different geography levels for the same dataset helps to understand regional variation.

Layer groups show off geography levels

The purpose of Layer Groups isn’t to teach about the benefit of levels of geography but it does simplify the user experience for exploring these three separate layers. In the example above, several datasets at different levels of Geography were added to a map. They were then grouped to show a single layer that answers the question, “How do people get to work?.” As the audience of the map zooms and pans, the layers automatically show the most relevant geography by observing the Visible Range setting on each individual layer. To the user, the layer grouping is transparent as they just see the single layer in the legend.

 

Gif showing drag and drop capabilities

Which apps can use Layer Groups?

Layer Groups are supported in the ArcGIS API for Javascript version 4x, which includes essential apps like the 4X configurable apps, StoryMaps and the new Field Maps Beta. If a web map with Layer Groups is opened in an application that doesn’t support Layer Groups, such as classic Map Viewer and Web AppBuilder, the layers will be flattened out and users will need to interact with each layer instead of with a group.

Do I have to own the layers in order to group them?

No, you can group any layer type that is supported in Map Viewer Beta currently. This is great for creating groups of layers from a variety of sources, like your own data and Esri Living Atlas data. You can also set properties for the whole group, like layer blending.

What comes next?

This is the initial release of Layer Groups and we have some additional capabilities planned for upcoming releases such as:

Thank you to all of our customers who have supported the idea and provided your feedback over the years. I think you’ll love the new experience as much as I do. Please keep sharing your feedback and build some awesome maps to show off next week. I wish we were all together in person, to celebrate and brainstorm ideas for Layer Groups at User Conference this year. Can’t wait to see your simplified Tables of Contents and the creative ways you will use these.

About the author

Kelly is a Product Manager on the ArcGIS Online team. She has been with Esri since 2012 and enjoys blogging, Web Apping and outdoor adventures!

Connect:

Leave a Reply

Please Login to comment

Next Article

Jeffrey Sachs discusses the critical roles of GIS and storytelling in solving global challenges

Read this article