Configure pop-ups
In this topic
- Enable and remove pop-ups
- Configure pop-ups
- Show attachments
- Show images
- Show charts
- Show related data
- Configure pop-ups for imagery
A map can show descriptive information about features configured to display in a pop-up. Pop-ups bring to life the attributes associated with each feature layer in the map, such as hiking trails, land values, or unemployment rates. They can show attachments, images, and charts and can link to external web pages. You can configure pop-ups on imagery when you're working with a mosaic dataset-based image service. A pop-up on an image layer displays the attributes of images at its current location, such as the acquisition date, sensor type, and cloud cover.
The default pop-up appearance for a layer is a plain list of attributes and values. As a map owner, you can reconfigure the pop-ups to define the list of visible fields, hidden fields, and how to present that information. For example, you might show a list of attributes or provide a rich interactive experience for visualizing and comparing features in a particular layer by providing custom-formatted text and charts.
You can configure pop-ups in ArcGIS Server service layers, hosted feature layers, hosted tile layers, and layers from files. If you are configuring pop-ups for an ArcGIS Server feature layer, you can also set which fields are editable. Pop-ups for OGC WMS and OGC WMTS are not supported. Configuring pop-ups on KML layers is not supported; any feature data in the layer is automatically displayed (you cannot configure or disable them). Pop-up configurations you make on layers you own can be saved with the item properties and automatically enabled on other maps using that layer. The configuration applies to the layer in the map only and not the actual service running on your ArcGIS Server.
You need to share your ArcGIS Server service layer in the website for the pop-ups to appear in your maps. If you share your service with groups you belong to, and not with everybody (public), only group members will see your pop-ups.
Enable and remove pop-ups
A map can show descriptive information about features configured for display in a pop-up. Enabling pop-ups in a layer is quick. However, layers can contain a large amount of feature data, and maps can include several layers, so the pop-up tends to look better if you take the time to configure them with selected fields, formatting, media, and so on. Feature layers always have the pop-up enabled, so you do not see an option to enable pop-ups. You do see an option to configure them.
- Verify that you are signed in and have privileges to create content.
Note:
If you do not have privileges to create content (you won't see Save in the map viewer), you can still enable pop-ups to explore data by clicking Modify Map.
- Open the map in the map viewer, click Details, and click Contents.
- Browse to the sublayer that contains the feature data you want to show in a pop-up.
- Click the arrow to the right of the layer name and click Enable Pop-up.
If you do not want to display pop-ups for a layer you have previously enabled, click the arrow to the right of the layer name and click Remove Pop-up. There is no option to remove pop-ups for map notes or KML layers.
Configure pop-ups
- Verify that you are signed in and, if you want to save your pop-up changes, have privileges to create content.
Note:
If you do not have privileges to create content (you won't see Save in the map viewer), you can still configure pop-ups to explore data by clicking Modify Map.
- Open the map in the map viewer, click Details, and click Contents.
- Browse to the sublayer that contains the feature data you want to configure in a pop-up.
- Click the arrow to the right of the layer name and click Configure Pop-up. You can configure the three sections of the pop-up: title, contents, and media.
- Enter a title for your pop-up.
- Use the [+] button to select field values from your data. The field values contain field aliases followed by the field names. By default, the primary field is displayed.
- Optionally enter static text instead of or in addition to your field values.
Suppose you want your title to show population by county. You could configure your title with a combination of static text and field values, such as typing Population for, inserting your data's field value of county names [Cnty_name], typing the equals sign = and, finally, inserting another field value that shows population, [pop2010]. You would configure your title to be the following:
Population for [Cnty_name] = [pop2010]
This gives you a title where the field values are substituted into the title, for example, Population for Clark County = 453099.
- Select an attribute option from the drop-down menu to set the contents for the pop-up. Your choices are a list of field attributes, a description from one field, a custom attribute display, or no attribute information.
- To configure the attributes within the field or fields you want to display, click the Configure Attributes link. Select which fields you want to display. You can also select a field to change its alias, order it, and format it. For number fields (such as population), select the number of decimal places to display and whether to use a 1,000 separator.
Tip:
If the layer supports editing, you can select which fields to edit. Be sure to also display the field (so it appears in the edit pop-up). For editable text fields, you can select the type of text box and provide a hint.
For date fields that include time, select a format that includes both. By default, only dates are displayed.
- If you selected to show a description from one field, click the arrow under Select the field containing the description and click a field name to display.
- If you've selected a custom attribute display, click Configure to define and format the information you want to show. The custom attribute display allows you to use a combination of rich text, attributes, and links to give you the most control and flexibility over your display. If you create a custom attribute display for an editable layer, the attributes appear as a list when somebody edits the feature.
- To configure the attributes within the field or fields you want to display, click the Configure Attributes link. Select which fields you want to display. You can also select a field to change its alias, order it, and format it. For number fields (such as population), select the number of decimal places to display and whether to use a 1,000 separator.
- If your feature layer includes attachments, you can select to show attachments as links at the bottom of the pop-up. Attachments are supported as a related table to a feature class in a feature service.
- Add media to your pop-up if you want, such as images or charts.
- Click Save Pop-up when you are finished configuring your pop-ups.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.
Show attachments
Pop-ups can be configured to show attachments as links if the map includes a feature layer that has attachments in its data. You will only see an option to show attachments if the layer has them. When the pop-up is displayed, the attachment links are listed at the bottom of the window. Clicking one of the links opens the attachment in a new window.
- Follow the first six steps in the Configure pop-up section to open the Configure Pop-Up pane for the layer you want to configure.
- Check the box next to Show feature attachments as links.
- Click Save Pop-up.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.
Show images
You can include images in your pop-ups. The images can be contained within the layer's data or you can enter a URL to an image stored on an external website or in your portal. The images can include titles, captions, and links to related websites.
Tip:
For the best display, you should create images that are 200 pixels wide and 150 pixels high. If your image is smaller than 200 by 150, you will see a white border in the window. If the image is larger, your web browser automatically rescales the image to 200 by 150 and it may appear warped.
- Follow the first six steps in the Configure pop-up section to open the Configure Pop-Up pane for the layer you want to configure.
- Click Add and choose Image.
- Enter a title for the image. By default, the primary field is displayed.
- Click [+] and select a field value from your data. Use this option if you want a unique title for each feature in your data.
- Optionally enter static text instead of or in addition to your field value.
- If you don't want a title with your image, delete any text that appears in the field so the field is blank.
- Enter a caption. The caption appears below the title and above the image. It is useful for giving a short explanation of the image. By default, no caption is displayed.
- Click [+] and select a field value from your data. Use this option if you want a unique caption for each feature in your data.
- Optionally enter static text instead of or in addition to your field values.
- If you don't want a caption with your image, delete any text that appears in the field so the field is blank.
- Enter the URL to the image.
- Click [+] and select a field value from your data. Use this option if you want a unique image for each feature in your data.
- Optionally enter the URL to an image. PNG, JPEG, and GIF images are supported.
- Enter the URL of a related link. When the image is clicked, this URL will open in a new window. It is optional.
- Click [+] and select a field value from your data. Use this option if you want a unique URL for each feature in your data.
- Optionally enter the URL of a related link.
- Click OK to save your image configuration and close the Configure Image window.
- If you have more than one image (or other media items) and want to change the order of how the items appear in the pop-up, click a media item in the Pop-up media box and click Up or Down.
- Click Save Pop-up.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.
Show charts
You can add charts to graphically display the values of numeric attribute fields. You can add pie charts, bar charts, column charts, and line charts.
- Follow the first six steps in the Configure pop-up section to open the Configure Pop-Up pane for the layer you want to configure.
- Click Add and choose the type of chart you want to show.
- Enter a title for the chart.
- Use [+] to select a field value from your data. By default, the primary field is displayed.
- Optionally enter static text instead of or in addition to your field value.
- If you don't want a title with your chart, delete any text that appears in the field so the field is blank.
- Enter a caption for the chart. 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 may wish to include an indication of units for column, bar, or line charts in the chart description. A pie chart shows percentages, and this will be labeled on the chart when the pop-up is maximized.
- Use [+] to select a field value from your data. By default, no caption is displayed.
- Optionally enter static text instead of or in addition to your field value.
- If you don't want a caption with your image, delete any text that appears in the field so the field is blank.
- Select which fields to include in the chart.
- Select a Normalization field to normalize the data. The values in this field will be 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.
- Click OK to save your image configuration.
- If you have more than one chart (or images) and want to change the order of how the items appear in the pop-up, select a media item and click Up or Down.
- Click Save Pop-up.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.
Show related data
A layer in your map may contain a preestablished relationship to another table through a common field. For example, if you have a layer of buildings, it may have a preestablished relationship to a layer that shows information about the tenants that occupy that building. If there is a relationship, you can configure pop-ups to display the related data.
You can create data relationships within geodatabases in ArcGIS for Desktop and publish the data to your portal or ArcGIS for Server (version 10.1 or later is required).
The map viewer supports one-to-one and one-to-many relationships. To show related records in a table, the layers that contain the related data must be in the map.
- Follow the first six steps in the Configure pop-up section.
- Within Configure Attributes, choose the related fields you want to display. Related fields include {relationships} in the field name.
- With a one-to-one relationship, the pop-up displays the related attributes within the pop-up window.
- With a one-to-many relationship, choose to display the related data within the pop-up window or in a table. When displaying attributes within the pop-up, string fields show the count. For numeric fields, you can choose to display the sum, min, max, average, or count.
- For numeric fields, select the number of decimal places to display and whether to use a 1,000 separator.
- To show a chart, follow the steps in the Show chart section.
- For layers that have a one-to-one relationship, you can create a chart from attributes in the layer.
- If the layer has a one-to-many relationship, choose to create the chart from attributes in the layer or a related layer or table.
- If you chose to create a chart from a related layer or table, choose the related layer or table, a chart field, and a label field.
- Click Save Pop-up.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.
Configure pop-ups for imagery
You can configure pop-ups on an image layer when you're working with a mosaic dataset-based image service. A pop-up on an image layer displays the attributes of images at its current location, such as the acquisition date, sensor type, and cloud cover. The pop-up will display information only from the images that are visible at the current map scale. Images are ordered in the pop-up based on the display order setting. To learn more about map scale and image display ordering, see Display imagery.
Pop-ups can also display the pixel values of quantitative data, which may represent elevation, precipitation, temperature, reflectance, and other such information. There are two types of quantitative pixel values that you can configure: Item Pixel Value and Service Pixel Value. Item pixel value represents the raw pixel value at a given location. Service pixel value represents the processed and resampled pixel value at the current map scale. It is possible that the service pixel value will have a different meaning or unit than the item pixel value. For example, a Landsat service may have Normalized Difference Vegetation Index (NDVI) applied at the service level. In this scenario, the service pixel values represent NDVI, whereas the item pixel values represent the original digital number (DN) values.
When working with qualitative data, you can display categorical information associated with the pixel values, such as land cover type, as well.
Note:
If you are working with an image service created from a raster dataset, as opposed to a mosaic dataset, you can also configure pop-ups; however, they will only display the service pixel value.
To show pixel values and categorical information in pop-ups, follow the steps below.
- Follow the first six steps in the Configure pop-up section to open the Configure Pop-Up pane for the imagery layer you want to configure.
- Click Configure Attributes to open the Configure Attributes window.
- Scroll to the Service Pixel Value and Item Pixel Value field names.
If your image service includes categorical information, you will see fields that start with Raster. You can configure the settings to display these fields as well.
- Check the box next to Item Pixel Value if you plan to display the raw values of your data. You can rename a field using a field alias to describe your data better.
- Check the box next to Service Pixel Value if you plan to display the processed values of your data. You can rename a field using a field alias to describe your data better.
- Click OK to accept the attribute fields to display in your pop-up.
- Click Save Layer to save the configuration as a property of the item. You can only save item properties if you own the layer or if you save it as a new item.
- Click Save from the top of the map viewer to save the pop-up changes to the map.