Configure pop-ups (Map Viewer)

A map can show descriptive information about imagery and features configured to display in a pop-up. Pop-ups can bring focus to the attributes associated with each layer in the map, such as hiking trails, land use types, or unemployment rates. They can contain attachments, images, charts, and text, and they can link to external web pages.

Tip:

For point layers with clustering enabled, you can also configure pop-ups for clusters.

In Map Viewer , the default pop-up appearance for a feature layer is a list of fields and values. The default pop-up appearance for an imagery layer is the pixel values. As a map owner, you can reconfigure the pop-ups to define the list of visible and hidden fields, and define how the information is presented. You can also add content to provide more meaning to the pop-up. For example, you can include a list of fields, provide an interactive experience using custom-formatted text and images, and show related records.

Tip:

Configuration options

As a map author, the main decisions you'll make about pop-ups are what information is displayed and the best way to present it. For example, to show the public where they can swim, fish, and boat along the Mississippi Gulf Coast, you can configure pop-ups to show the address, type of access, and images of public access points. Even though the layer may have other fields regarding the location and type of point, you may not want to show them in the pop-up, as the public won't be interested and they detract from the more relevant information.

Depending on what you are trying to show in pop-ups for feature or imagery layers, you can choose from a variety of configuration options. These are described in the sections below.

Tip:

See an example

Some configurations are illustrated in this map of California peaks. On the Contents (dark) toolbar, click the Layers pane and turn on one layer at a time to compare the configurations by clicking features on the map.

Enable and remove pop-ups

Layers can contain a large amount of feature data, and maps can include several layers, so pop-ups generally look better if you configure them with selected fields, formatting, media, and so on. Pop-ups are enabled on feature layers by default.

To remove pop-ups from a layer, complete the following steps:

  1. Confirm that you are signed in and, if you want to save your changes, that you have privileges to create 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.
  • On the Contents (dark) toolbar, click Layers Layersto open the Layers pane, and select the layer that contains the feature data you want to show in a pop-up.
  • On the Settings (light) toolbar, click Pop-ups Pop-ups, and turn off the Enable pop-ups toggle button.

    To enable pop-ups on a layer with pop-ups turned off, turn on the Enable pop-ups toggle button.

    Configure pop-ups

    To configure pop-ups, complete the following steps:

    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 .

    1. Confirm that you are signed in and, if you want to save your changes, that you have privileges to create 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.
  • On the Contents (dark) toolbar, click Layers Layersto open the Layers pane, and select the layer that contains the feature data you want to show in a pop-up.
  • On the Settings (light) toolbar, click Pop-ups Pop-ups.
  • For imagery layers, optionally turn on the Ignore NoData toggle button to disable pop-up information for NoData areas in the image.

    If the Ignore NoData toggle button is turned off, no pixel information will be displayed in the pop-up.

    If the Display topmost item only toggle button is off, pixel information for all the mosaic dataset layers at the location will be displayed.

    Add field

    1. Click Add field and select fields from the data.

    Note:

    To display information derived from an ArcGIS Arcade expression in the pop-up title, add a new expression. The new expression appears in the list of fields.

    For example, you want the title to show population by county. You can configure the title with a combination of static text and field values, such as typing Population for ; inserting the data's field value of county names ; typing the equal sign = ; and inserting another field value that shows population, . This configures the title as follows:

    This provides a title in which the field values are substituted into the title, for example, Population for Clark County = 453099 .

    Add field

    1. Click Add field and select a field value or expression from the data. Use this option if you want a unique title for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a title for the fields list.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique description for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want a field description.

    You can configure the fields to better display the field names and values.

    If the feature layer includes attachments, they are automatically added to the pop-up under attachments. Attachments are supported as a related table to a feature class in a feature service.

  • Optionally, click Add content and add media such as images, charts, or text to the pop-up.
  • Optionally, use the Reorder Reorderhandles to change the order in which the content appears.
  • On the Contents toolbar, click Save and open Save and openand click Save to save the pop-up changes to the map.
  • Configure fields

    You can configure the field or fields you want to display by changing the display name and formatting the display properties.

    Fields

    1. On the Settings (light) toolbar, click Fields .
    2. Select the field you want to configure.

    Tip:
    You can select multiple fields of the same type to configure their formatting at the same time.
    1. Change the display name of the field.
    2. For number fields (such as population), select the number of decimal places to display and whether to use a thousands separator.
    3. For Date, Date only, and Timestamp offset fields, select a date format from the Date format drop-down menu.
    4. For Date and Timestamp offset fields, turn on the Show time toggle button and select a format for displaying time.
    5. For a Time only field, select a time format from the Time format drop-down menu.
    Note:

    To learn more about supported field types, see Date and time fields in ArcGIS Online .

    Use expressions

    You can use custom expressions written in the Arcade expression language when configuring pop-ups. Using expressions allows you to create and display new information from existing fields in the layer. For example, you can create an expression that converts values from feet to meters, or dynamically create a URL based on feature attributes. If an expression is available for the layer—for example, for labeling or styling—you can copy and reuse it in your pop-up configuration.

    You can create expressions in pop-ups or use existing expressions created for the layer.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Attribute expressions .
    The Attribute expressions pane appears.
    Tip:

    If you need help with any of the Arcade functions, click the arrow next to the function to see reference information about it.

    Tip:

    Before closing the editor, give the Arcade expression a title that makes it easily identifiable in the list of fields.

    Remove

    The new expression is added to the Attribute expressions list. To edit it, select it from the list and make changes in the editor. To remove it, click Remove expression next to it. If you used a list of field attributes in the pop-ups, the new expression is added to the Fields list section, and you can change its formatting in the Fields pane.

    Save and open

  • On the Contents (dark) toolbar, click Save and open and click Save to save the pop-up changes to the map.
  • Add attachments

    When a feature layer includes attachments in its data, the attachments are added to the layer's pop-up. You can show the attachments as a list or in a gallery. You can also remove attachments from the pop-up. Clicking attachments in a pop-up opens the attachment in a new browser tab.

    Note:

    If pop-ups have not been previously configured for the layer and you are configuring the pop-ups in your map for the first time, Map Viewer automatically chooses the most appropriate display for your attachments.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Attachments .
    3. Enter a title for the attachment.

    Add field

    1. Click Add field and select a field value or expression from the data. Use this option if you want a unique title for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a title.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique description for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want a description.

  • Optionally, click Options Optionsand click Delete to remove attachments from the pop-up.
  • On the Contents (dark) toolbar, click Save and open Save and openand click Save to save the pop-up changes to the map.
  • Add images

    You can include images in pop-ups by providing a URL to an image (PNG, JPEG, or GIF format). The images can include a title, caption, links to related websites, and alternative text.

    Tip:

    For the best display, create images that are 400 pixels wide and optimized for web use. If the width of the image is less than 400 pixels, a white border is visible in the window. If the image is wider and not optimized for web use, the web browser automatically rescales the image and it may appear warped.

    When adding images to pop-ups, you can set a refresh interval. This allows the pop-up to refresh and display a frequently updated image at a specific interval (in minutes). For example, you can use this option to refresh images captured by a traffic camera.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Add content and choose Image .
    3. Provide the URL to the image.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique image for each feature in the data.
    2. Optionally, provide the URL to an image stored on an external website, in ArcGIS Online , or as an attachment in the layer's data. PNG, JPEG, and GIF formats are supported. If the image is stored as an item in ArcGIS Online , you must provide the URL copied from the URL field on the item page, which is only available if the image item is shared with the public.

    Add field

    1. Click Add field and select a field value or expression from the data. Use this option if you want a unique title for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a title.

    The caption appears below the title and above the image. It is useful for giving a short explanation of the image.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique caption for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want a caption.

    Alternative text is hidden on the pop-up and is used by screen readers.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want unique alternative text for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want alternative text.

    When the image is clicked, this URL opens in a new browser tab.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique URL for each feature in the data.
    2. Optionally, enter the URL of a related link.
    3. Leave the field blank if you don't want a related link.

    When the pop-up is displayed, the image is refreshed at the interval specified.

  • Optionally, click the Reorder button Reordernext to the item in the Media section and drag it to a new position if you have more than one image (or other media items) and want to change the order in which they appear in the pop-up.
  • On the Contents (dark) toolbar, click Save and open Save and openand click Save to save the pop-up changes to the map.
  • Add charts

    You can add charts to graphically display the values of numeric attribute fields. You can add bar charts, line charts, and pie charts.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Add content and choose Chart .
    3. Choose the type of chart you want to show.
    4. Enter a title for the chart.

    Add field

    1. Click Add field to select a field or expression from the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a title.

    The caption appears below the title and above the chart. It is useful for giving a short explanation of the data in the chart. You can include an indication of units for column, bar, or line charts in the chart description. A pie chart shows percentages when hovering over each segment.

    Add field

    1. Click Add field to select a field or expression from the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a caption.

    Alternative text is hidden on the pop-up and is used by screen readers.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want unique alternative text for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want alternative text.

  • Click Select fields and select the fields to include in the chart.
  • Optionally, adjust the chart colors by doing the following:

    Tip:
    To see the name of a color ramp, point to it.

    Reset

    Click Reset to default colors to return to the default chart colors at any time.

    The values in this field are used to divide the value field to create ratios. Normalization ratios are useful when other factors influence the numerical values you are classifying and displaying. For example, population can be influenced by each county's size, so you can divide population by area to standardize the data. Data normalization is also useful for providing a meaningful comparison if the values in the fields do not use the same units of measurement.

  • Optionally, click Reorder Reordernext to the item in the Media section and drag it to a new position if you have more than one chart (or other media items) and want to change the order in which they appear in the pop-up.
  • On the Contents (dark) toolbar, click Save and open Save and openand click Save to save the pop-up changes to the map.
  • Add text

    You can include text in pop-ups to add context and information.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Add content and choose Text .
    A text element is added and the text editor appears.

    Fields List

  • In the text editor, do any of the following:

    Tip:

    Source

    To give you the most control and flexibility over your display, you can also use supported HTML in your pop-ups by clicking Source in the text editor.

    Save and open

  • Click OK .
  • On the Contents (dark) toolbar, click Save and open and click Save to save the pop-up changes to the map.
  • Add an Arcade element

    In addition to using attribute expressions to return values that function like existing fields, you can use Arcade to create and define entire content elements in pop-ups. Using an Arcade element helps to avoid duplication of logic when working with multiple attribute expressions. Arcade elements allow you to define the data and other aspects of the element in a single expression.

    Choose a template for rich text, chart, or fields list elements and create an Arcade expression that defines the element's content.

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Add content and choose Arcade .
    The editor window appears.

    Suggestions

    Click Suggestions and choose a template from the Templates tab to create the expression.

    Tip:

    Arcade elements return a dictionary that defines your pop-up element. Templates help you get started with the correct dictionary structure. Learn more about the structure of pop-up elements and the pop-up element profile in Arcade .

    Tip:

    Before closing the editor, give the Arcade element a title that makes it easily identifiable in the list of pop-up content elements.

    Save and open

  • On the Contents (dark) toolbar, click Save and open and click Save to save the pop-up changes to the map.
  • Show related records

    Some layers you add to Map Viewer may contain preestablished relationships to other tables or layers through a common field. For example, a layer showing buildings may have a preestablished relationship to a table with information about each building's tenants. If your layers have relationships, you can configure pop-ups to display the related records.

    You can create data relationships within geodatabases in ArcGIS Pro and publish the data to ArcGIS Online or ArcGIS Server (version 10.1 or later is required). Some of the analysis tools, such as Summarize Within , create relationships for you if you choose a field to group statistics. You cannot create relationships in Map Viewer pop-ups.

    Map Viewer supports one-to-one and one-to-many relationships. To show related records in a table, the tables or layers that contain the related data must be added to the map.

    Note:

    Related records are only supported for hosted feature layers and table layers. It is best practice to configure pop-ups for both layers involved in the relationship.

    To show related records in a pop-up, do the following:

    1. Follow the first four steps in the Configure pop-ups section to open the Pop-ups pane for the layer you want to configure.
    2. Click Add content and choose Related records .
    3. Enter a title for the related records shown in the pop-up.

    Add field

    1. Click Add field to select a field or expression from the data.
    2. Optionally, enter static text instead of or in addition to the field value.
    3. Leave the field blank if you don't want a title.

    Add field

    1. Click Add field and select a field or expression from the data. Use this option if you want a unique description for each feature in the data.
    2. Optionally, enter static text instead of or in addition to the field values.
    3. Leave the field blank if you don't want a description.

    The drop-down menu only shows relationships whose component layers have been added to the map.

    Save and open

  • From the Sort by drop-down menu, choose a field from the related table or layer.
  • From the Sort order drop-down menu, choose a sorting method for the related records.
  • From the Preview count drop-down menu, choose how many related records are shown in the pop-up.
  • On the Contents (dark) toolbar, click Save and open and click Save to save the pop-up changes to the map.

    Select feature

    Related records are now displayed in the pop-up when you or others click a feature on the map. To get information about a related record, click the arrow next to it in the pop-up. You can then click Select feature to zoom to and select the related feature and display its pop-up.

    In this topic
    1. Configuration options
    2. Enable and remove pop-ups
    3. Configure pop-ups
    4. Configure fields
    5. Use expressions
    6. Add attachments
    7. Add images
    8. Add charts
    9. Add text
    10. Add an Arcade