Skip To Content

Change style (Map Viewer Classic)

Note:

A new Map Viewer is now available. The new Map Viewer was previously available as a separate beta installation but is now available in the portal automatically. Open it from the app launcher to get started. To learn more, see the new 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.

Fortunately, Map Viewer Classic allows you to explore different styling options using smart mapping defaults. When you use Change Style, the nature of your data determines the styling suggestions you see by default. Once you have decided how you want 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 the following resources:

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 numerical information such as air temperature. 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:

You can create a custom expression written in the Arcade scripting language to use for styling instead of styling a feature layer using explicit attributes in your layer. 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 a new Arcade expression or edit your Arcade expression directly in Map Viewer Classic. Arcade expressions can also be used when setting transparency for features or the rotation angle of symbols.

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 don't want 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:

  1. Verify that you are signed in and, if you want to save your changes, that you have privileges to create content.
  2. Open the map in Map Viewer Classic.
  3. Click Details and click Contents.
  4. Browse to and hover over the feature layer that contains the style you want to change and click Change Style Change style.
  5. For Choose an attribute to show, do one of the following:
    • To style an attribute in your layer, select the attribute you want.
    • To use a custom Arcade expression that was previously created for the layer, select it at the bottom of the drop-down menu. If you want to edit the expression or its name, click the Edit Expression button and use the editor window to edit it.
    • If you want to create a new Arcade expression, select New Expression from the drop-down menu and use the editor window to create your expression, including giving it a name. You can use existing expressions to build new expressions, but be aware that certain variables may not work across profiles. To use an existing expression, select it 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.

  6. To apply multiple styles, click Add attribute and choose a second attribute to show.
  7. 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.

  8. The check mark Check mark indicates the current styling of the layer. Click Select to choose a different style.
  9. Click Options to customize the look of the layer.
    Tip:

    With Color and Size, Types and Size, Predominant Category 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).

  10. 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:

    If you want 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.

  11. If you have privileges to create content or the ability to update content shared with you through a shared update group, and want the styling to apply to the item anytime it appears on a map, browse to the layer you want to save, click More Options More Options, and click Save Layer.
  12. 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 mapQuestions to answerStyles to use

Location only

Examples: restaurant locations, coffee shop distribution

  • Where are my features located?
  • How are they distributed geographically?

1 numeric attribute

Examples: cropland in use, largest urban areas

  • How do my features compare to each other based on numeric values?
  • Where are the highest and lowest values?
  • Which features are above and below a specific attribute value?

2 numeric attributes

Examples: number and rate of single-parent households, global population change, smoking and excessive drinking

  • Where are the highest and lowest values?
  • How are the numeric attributes related?
  • What is the relationship between numeric totals and the rate or ratio?
  • Are there any outliers?
  • Which features have high values or low values for both attributes?
  • Which features have low values for one attribute and high values for the other attribute?
  • Where is the relationship pattern the strongest or weakest for each attribute?

3 numeric attributes

Examples: obesity, diabetes, and physical inactivity

  • How are the numeric attributes related?
  • Which features have high values or low values for both attributes?
  • Which features have low values for one attribute and high values for the other attribute?
  • Where is the relationship pattern the strongest or weakest for each attribute?

2 to 10 related numeric attributes with the same unit of measurement

Example: predominant crop harvest by U.S. county and which counties have the highest and lowest total crop yields

  • Which attribute has the highest value compared to other related attributes for each feature? Which has the lowest value?
  • How much higher is the highest attribute value compared to other related attributes?
  • What is the sum of the attributes for each feature and how does it compare to the other features?

*for feature collections, CSV or zipped shapefiles only

1 category/type attribute

Example: city rail lines

  • How is my data distributed or summarized by category?

1 category/type and 1 numeric attribute

Example: number of graduate degree holders and distribution by county

  • Where are the highest and lowest values?
  • How is my data distributed by category?

1 date/time attribute

Examples: street inspections by date, old and recent home sales, age of code violation complaint to compliance date

  • Where are older features and where are newer ones?
  • Which features have dates that are before or after a key date?
  • Which features have a higher age (length of time between two dates) and which have a lower age?

*for feature collections, CSV layers, and CSV files and zipped SHP files only

2 date/time attributes

Example: relationship between age of code violation (how long between complaint and compliance) and how recently the violations occurred

  • Where are older features and where are newer ones?
  • Which features have dates that are before or after a key date?
  • Which features have a higher age (length of time between two dates) and which have a lower age?
  • What is the relationship between the age of features and how old or new they are?

*for feature collections, CSV layers, and CSV files and zipped SHP files only

1 date/time attribute and 1 numeric attribute

Example: length of time since migrants went missing and locations where migrants were found dead

  • Which features have a higher age (length of time between two dates) and which have a lower age?
  • What is the relationship between a feature's age and a numeric attribute value?

*for feature collections, CSV layers, and CSV files and zipped SHP files only

1 date/time attribute and 1 category/type attribute

Example: credit card payments by card type and length of time since payment

  • How is my data distributed by category?
  • Which features have a higher age (length of time between two dates) and which have a lower age?
  • What is the relationship between the age of a feature and its category?

*for feature collections, CSV layers, and CSV files and zipped SHP files only