Maps allow you to visualize data in a variety of ways. For example, you can visualize population data for countries as a sequence of colors, such as from light to dark, or as proportional circles, such as from small to large. This flexibility allows you to tell different stories and discover hidden patterns depending on how the data is presented. However, because mapmaking is so flexible, you must make decisions when there isn't always a single best answer.
With Map Viewer, you can explore various styling options using smart mapping defaults. When you style map layers in Map Viewer, the nature of the data determines the styling options that appear by default in the Styles pane. You can then experiment with color ramps, line weights, transparency, symbols, and other graphic elements, and see your choices reflected immediately on the map.
Tip:
![See an example See an example](GUID-63BAFC48-AB7E-45B7-9C05-0F0B345FA749-web.png)
- Smart Mapping: Get Started story
- Smart Mapping Styles story collection
Tip:
You can use keyboard shortcuts to quickly complete common workflows in Map Viewer. To view the full list of keyboard shortcuts in Map Viewer, press Alt+? on Microsoft Windows or Option+? on Mac.
Apply a style
The styling options provided for a layer are based on the type of data you are mapping. The available options depend on whether the feature layer is composed of point, line, or polygon features, or whether you are mapping imagery or raster data. For example, heat map styling options are available for a layer composed of points, but not for line or polygon layers. The options are also influenced by the type of attribute data associated with the layer. For example, a point feature may only have location information such as geographic coordinates but may also have categorical information such as tree species or numeric information such as air temperature. Styling options also vary depending on whether you want to show one or two attributes, such as revenue or population. Not every styling option can be used for every type of data. By analyzing these and other characteristics of the data, Map Viewer presents the best styling options.
Note:
Instead of styling a feature layer using explicit attributes in the layer, you can create a custom attribute expression written in ArcGIS Arcade to use for styling. This is available for most styles. For example, you can create an Arcade expression to derive a yearly sales figure for individual sales territories by summing the value of monthly sales fields. The yearly sales figures can then be represented as different-sized symbols on the map. You can also create an Arcade expression or edit an existing Arcade expression directly in Map Viewer. You can also use Arcade expressions when setting transparency for features or the rotation angle of symbols, as well as when configuring pop-ups and labels.
When you add a layer without any styling attached to it—for example, you add a hosted feature or imagery layer from its item page immediately after publishing—Map Viewer displays the layer with default styling applied. If you add a layer with existing styling applied, Map Viewer respects that styling. You can change the style of a supported layer at any time by clicking the Styles button on the Settings toolbar.
To apply a style or change the style of a feature layer, do the following:
Note:
For information about styling imagery layers, see Style imagery.
- Confirm that you are signed in and, if you want to save your changes, that you have privileges to create, update, and delete content.
Note:
You can explore maps, add and configure layers, and more without signing in. To save your work, sign in before creating a map. - In Map Viewer, open the map containing the layer or add the layer directly.
- In the Layers pane, click the layer to select it.
- On the Settings (light) toolbar, click Styles
.
- In the Styles pane, do one of the following in the Choose attributes section:
Note:
You can skip this step if you want to show locations using a single symbol or map the locations of point features as a heat map.
- Click Field, find and select the attribute, and click Add to style an attribute in the layer.
- Click Expression and create a custom Arcade expression in the editor window, including providing a name, to style the layer.
You can also use existing expressions to build new expressions; however, some variables may not work in all profiles—for example, an expression created for pop-ups may not work for styles. To use an existing expression, select it from the Suggestions
tab under Existing.
Tip:
If you need help with any of the Arcade functions, click the arrow next to the function to see reference information about it.
- To style additional attributes or create more expressions, repeat the previous step.
The style currently applied to the layer is selected in the Pick a style section.
- Optionally, select a different style. Choose a style based on what you want to show.
For help choosing a style, see the Styles quick reference table.
Note:
Only the options that apply to the data appear. For example, if you only know the location of a feature, you can only use a single symbol or heat map, not size or color. However, if you have categorical or numeric information attached to those locations, smart mapping presents additional styling options.
Some styles also include a Theme option. Themes allow you to experiment with various views of your data. The availability of themes depends on the smart mapping style you choose.
- Optionally, click Style options on the style card to customize the look of the layer.
Tip:
With Color and Size, Types and Size, Predominant Category and Size, Relationship and Size, Types and Size (age), and Color and Size (age), you apply styling options to each attribute. For example, if you choose the Types and Size style, choose options for Types (unique symbols) and Counts and Amounts (size).
- In the Style options pane, click Done when you finish customizing your style, or click Cancel to return to the Styles pane without saving your choices.
- In the Styles pane, click Done.
- On the Contents (dark) toolbar, click Save and open
and click Save to save your styling changes to the map.
Styles quick reference
When you style a layer using smart mapping, the available styling options depend on the type of data you are mapping (point, line, polygon, or imagery) as well as the type of data attributes (numbers, categories, dates, and so on) and number of attributes you choose. Each style helps you tell a slightly different story and answer different questions with the data.
The following table provides a quick reference of the smart mapping styling options available for various types of data and some of the key questions you can answer using each style:
Tip:
![See an example See an example](GUID-63BAFC48-AB7E-45B7-9C05-0F0B345FA749-web.png)
Data type | Questions that smart mapping can answer | Available smart mapping style |
---|---|---|
Location only
|
|
|
One numeric attribute
|
| |
Two numeric attributes
|
| |
Three numeric attributes
|
| |
One or more numeric attributes (counts or amounts) with the same unit of measurement
|
| |
Two to ten related numeric attributes with the same unit of measurement
|
| |
One category/type attribute
|
| |
One category/type and one numeric attribute
|
| |
Date only
|
| |
One date/time attribute Note:Supported date and time field types include the following:
To learn more about supported field types, see Date and time fields in ArcGIS Online. |
| |
Two date/time attributes
|
| |
One date/time attribute and one numeric attribute
|
| |
One date/time attribute and one category/type attribute
|
| |
Categorical raster
|
| |
Multispectral imagery
|
| |
Continuous raster or imagery
|
| |
Colormap
|
| |
Multidimensional Vector Field
|
|