Are you curious about enhancing your Experience with ArcGIS? Ever thought about creating engaging and informative pop-ups for your map layers to boost user interaction? If so, you've come to the right place. In this article, we're going to delve into the world of ArcGIS Arcade POP-UP examples. By the end, you'll be equipped with the knowledge to create captivating pop-ups that transform your maps from static to interactive.

A pop-up in ArcGIS is a window that appears when you click on a feature on the map. It contains information about the feature that is being clicked. This feature is particularly useful in providing detailed and relevant information to users at the right time, enhancing their overall experience and understanding of the map. Now, let's get started on our journey to creating the best Arcade POP-UP examples.

Understanding Arcade in ArcGIS
Before we dive into pop-ups, let's briefly understand what Arcade is in ArcGIS. Arcade is an expression-based language used in ArcGIS to perform calculations and manipulations on data. It is heavily used in pop-up definition to control the display of information in the pop-up.

Arcade enables you to include calculations, conditional logic, looping structures, and more in your pop-up. This means you can create dynamic pop-ups that adapt to the user's interaction, providing a more personalized and engaging experience.
Setting up Arcade for Pop-ups

To get started with Arcade in pop-ups, you'll first need to ensure it's enabled in your map. Open your map in ArcGIS Pro or web app builder, then go to the Pop-ups tab. Look for the Configure pop-up option. Here you'll see an Advanced section, click on it and look for the Expression field. This is where your Arcade expression will go.
For example, you might use Arcade to display a formatted address from your feature's attributes. Here's a simple example: { "$feature.feature_type = 'Point' ? 'Point at ' + geometry.toJson().longitude + ', ' + geometry.toJson().latitude : $feature.feature_type'}
Simple Arcade POP-UP Examples

One of the simplest Arcade pop-up examples is using it to format your dates. Rather than displaying a date in an unwieldy format, like '2008/01/01', you can use Arcade to format it as 'January 1, 2008'. Here's how you'd do it:
FormatDate($feature.StartDate, "month-dd, yyyy")
Creating Interactive Pop-up Content

Now that we've covered the basics, let's look at creating more interactive Arcade pop-up examples. Interactive pop-ups engage users by showing different content based on their actions, such as clicking on a specific feature or making a selection in a drop-down list.
Conditional Pop-up Content










You can use arcade's conditional statements to show or hide content based on certain criteria. For instance, you might show a different message if a feature is selected vs. deselected. Here's a simple example:
{ "Has been selected": $feature.selected, "This feature has not been selected": !$feature.selected }
Looping Structures
Arcade's looping structures allow you to display multiple pieces of information from a feature's attributes. For instance, if you have a layer of parks with features for each amenity, you can loop through these to display a list of all amenities at that park. Here's an example:
{ "Amenities: " + amenities.agg("concatenate", "; ") }
Remember, the key to creating effective Arcade pop-up examples is understanding your data and your users' needs. Always strive for clarity, conciseness, and relevance. With these tips in mind, you're well on your way to transforming your ArcGIS maps into engaging and interactive experiences.