Configuring Pop-ups in ArcGIS Pro
Pop-ups are an important part of web maps and they help users explore data intuitively. With ArcGIS Pro 2.3, configuring pop-ups just got easier. Find out how.
There are quite a few benefits to working with ArcGIS Pro, such as taking advantage of 64 bit, editing hosted feature service directly in the map, and processing large datasets. Another benefit (although maybe not be as exciting) is that you can edit your pop-ups before publishing your data to ArcGIS Online. When you configure your pop-up in ArcGIS Pro, the details are saved to the hosted feature layer, which means that your hosted feature layer will have the same pop-up window in your different web maps.
Invoke Configure Pop-up Window
You can open the pop-up configuration window by right-clicking your layer in the Contents pane and selecting Configure Pop-ups.
In the Pop-ups window, you can configure your fields, add additional text, add a chart and add images or use the ones found in your attachment table (if applicable).
Configure Text Options
In this example, I am adding text that I want to configure to specify that my ID field is a tag number given the fish that was caught. I can choose the colour, alignment and font–whether I want to bold, italicize or underline my text. The curly brackets as {} contain my field name which can be easily added using the Field drop down menu. Additionally, you can hyperlink your text.
In the image above, you’ll notice that I've added a custom expression. You can create your own custom expressions using Arcade to include in your pop-up. In my example, I wanted to capitalize the text in the Fish Type field, so I used the following expression in the image below.
The custom expression can be invoked through the Expression button as illustrated in the image below.
Add an Image
As you can see in the screenshot above, there is an Image button in the upper right-hand corner. This option allows you to add links to URLs or use the images found in your attachment table to your pop-up.
Currently, images sourced from an attachment are dropped in a web map or feature layer. A workaround to this issue is provided after publishing the layer to ArcGIS Online. As I have an associated attachment table, I chose to use this option. I also added additional text for the caption and changed the Title to include the fish type expression that I previously created instead of the default attachment column that lists the image’s name.
I could also add a chart to my pop up. At present, you can only create charts using your numeric fields. Similar to the image option, you can add a caption and title to your chart. The image below shows how my pop-up looks like in ArcGIS Pro.
I am happy with how I’ve configured my pop-up window. The next step is to publish to ArcGIS Online through Share > Web Layer > Publish Web Layer.
As I previously mentioned in this post, ArcGIS Online displays attachments in a pop-up as a hyperlink rather than an image. To work your way around this issue, you will need to run the Attachment to Pop-up tool on your newly created feature service. You can add a text field in your hosted feature service that can support a large number of characters. I created a text field called Photo with a character limit of 1000. In ArcGIS Pro, I ran the Attachment to Pop-up tool on my newly created feature service.
For the tool to work correctly, editing must be enabled on the layer and the Feature Service URL must contain the /0.
I've configured the pop-up for my hosted feature layer in Visualization tab of the Item details page to show my images and clicked Save Layer so that my configuration could be saved to the hosted feature layer.
The image above shows my final pop-up in a web map.
I hope this post helps you in configuring pop-ups. ArcGIS Pro is a great software that makes getting data online easier. No wonder, we enjoy working with ArcGIS Pro in our Tech Support group too.