Note:
This topic includes information related to Map Viewer Classic. An enhanced map viewer is now available. Open Map Viewer from the app launcher to get started. To learn more, see the Map Viewer help documentation.
Maps are powerful because they allow you to visualize your data in a variety of ways. For example, population data for countries can be visualized 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. But because map making is so flexible, it requires making decisions when there isn't always a single best answer.
Map Viewer Classic allows you to explore different styling options using smart mapping defaults. When you use the Change Style option, the nature of your data determines the styling suggestions you see by default. Once you decide how to present your layer—for example, circles or colors to show population—you can make changes to its appearance that are immediately reflected on the map. Map Viewer Classic gives you control over graphic elements such as color ramps, line weights, transparency, and symbols.
Note:
Change Style smart mapping is available for a variety of layer types. To change the style of a vector tile layer, see Update vector tile layer style.
To learn more about smart mapping, see Mapping videos.
Change Style workflow
The styling options provided for a layer are based on the type of data you are mapping. You will see different choices depending on whether your layer is composed of point, line, or polygon features. For example, you will see heat map styling options for a layer composed of points, but not for line or polygon layers. The options offered are also influenced by the type of data associated with your features. For example, a point feature might only have location information such as geographic coordinates but could 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 your data, Map Viewer Classic presents the best styling choices.
Note:
Instead of styling a feature layer using explicit attributes in your layer, you can create a custom attribute expression written in ArcGIS Arcade to use for styling. This is available for most styles. For example, an Arcade expression might be created 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 Arcade expression directly in Map Viewer Classic. Arcade expressions can also be used when setting transparency for features or the rotation angle of symbols, as well as when configuring pop-ups and labels.
To learn more about using Arcade when styling layers in Map Viewer Classic, see the How to Smart Map: Arcade story.
Note:
ArcGIS API for JavaScript 3.44 and later will not be updated with the latest ArcGIS Arcade language features. Arcade expressions authored in JavaScript API apps at version 3.44 or later will only support Arcade language features introduced in Arcade version 1.21 or earlier. To learn more about Arcade language support across ArcGIS products, see the Arcade version matrix.
When you add a layer without any styling attached to it—for example, you import a CSV file or shapefile or add a hosted feature layer from its details page immediately after publishing—Map Viewer Classic opens the Change Style pane with suggested styling defaults for the layer. Click OK to accept the suggestions or Cancel if you decide not to apply the styling. If you add a layer that already has styling applied, Map Viewer Classic respects that styling. You must open the Change Style pane to see suggestions and make any styling changes to the layer.
You can change the style of a layer at any time by using the Change Style pane for supported layers. If you aren't happy with the style changes you made, you can return to the default style of the layer after applying the changes.
To change the style of your feature layer using smart mapping, do the following:
- Verify that you are signed in and, if you need to save your changes, that you have the privilege to create content.
- Open the map in Map Viewer Classic.
- Click Details and click Contents.
- Browse to and hover over the feature layer that contains the style to change and click Change Style .
- For Choose an attribute to show, do one of the following:
- To style an attribute in your layer, select the attribute.
- To use a custom Arcade expression that was previously created for the layer, select it at the bottom of the drop-down menu. To edit the expression or its name, click the Edit Expression button and use the editor window to edit it.
- To create an Arcade expression, select New Expression from the drop-down menu and use the editor window to create your expression, including giving it a name. If expressions were previously created for the layer for use in pop-ups or labels, you can copy and use these to build your expression by selecting them from the Existing tab in the editor window.
Arcade expressions are supported for all styles except Heat map, Predominant Category, Predominant Category and Size, and the Age styles.
Tip:
If you need help with any of the Arcade functions, click the Information button beside the function to see reference information about the function.
- To apply multiple styles, click Add attribute and choose a second attribute to show.
- Choose a style based on what you want to show.
For help choosing a style, refer to the Change Style quick reference table.
Note:
Only the options that apply to your data appear. For example, if you only know the location of a feature, you can only use a single symbol or heat map but not size or color. However, if you have categorical or numeric information attached to those locations, smart mapping presents many other styling choices.
- The check mark indicates the current styling of the layer. Click Select to choose a different style.
- Click Options 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 for Counts and Amounts (Size).
- Click Done when you are finished customizing your style or click Cancel to go back to the Change Style pane without saving any of your choices.
Tip:
To return to the default style of the layer after clicking Done, open the Change Style pane again and click Set default style under Select a drawing style.
- If you have the privilege to create content or the ability to update content shared with you through a shared update group, and need the styling to apply to the item anytime it appears on a map, browse to the layer to save, click More Options , and click Save Layer.
- Click Save at the top of Map Viewer Classic to save the styling changes to the map.
Change Style quick reference
When you style a layer using smart mapping, the styling options offered depend on the type of features you are mapping (point, line, or polygon) 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 your data.
The following table provides a quick reference of the smart mapping styling options available for different types of data and some of the key questions you can answer using each style:
Data to map | Questions to answer | Styles to use |
---|---|---|
Location only Examples: restaurant locations, coffee shop distribution |
|
|
1 numeric attribute Examples: cropland in use, largest urban areas |
| |
2 numeric attributes Examples: number and rate of single-parent households, global population change, smoking and excessive drinking |
| |
3 numeric attributes |
| |
2 to 10 related numeric attributes with the same unit of measurement Examples: highest per capita personal income year, predominant crop harvest by U.S. county and which counties have the highest and lowest total crop yields |
| *for hosted feature layers or feature collections only |
1 category/type attribute Example: city rail lines |
| |
1 category/type and 1 numeric attribute Example: annual average of daily traffic on Florida roads by district |
| |
1 date/time attribute Examples: street inspections by date, furniture sales by date, old and recent home sales, age of code violation complaint to compliance date |
| *for hosted feature layers or feature collections only |
2 date/time attributes |
| *for hosted feature layers or feature collections only |
1 date/time attribute and 1 numeric attribute Example: length of time since migrants went missing and locations where migrants were found dead |
| *for hosted feature layers or feature collections only |
1 date/time attribute and 1 category/type attribute Example: credit card payments by card type and length of time since payment |
| *for hosted feature layers or feature collections only |