Recreation Outreach Solution - Park Locator App

12-03-2021 11:04 AM
New Contributor III


I'm try to mimic the web app ( that I found from ESRI Recreation Outreach solution page  (  The solution (park locator) has a totally different look and feel to the solution web page.

Below image is what I trying to mimic.


Next image is what I have:


I want to have the  Amenities and Activities have similar look and feel.  I'm trying to figure out, how it was done.  Any help would be appreciated.  Maybe if the web map that was use for the app could be shared with me.

0 Kudos
5 Replies
Regular Contributor

What you need:

  • Field Amenities: comma separated string
    • "Tent Camping,Group Camping,Dogs Allowed"
  • Field Activities: same
    • "Fishing,Hiking,Biking"
  • image urls for check, cross, activity icons



Create an Arcade expression for each amenity you want to show:

var target_amenity = "Tent Camping" // change this
var amenities = Split($feature.Amenities, ",")
if(Includes(amenities, target_amenity)) {
  return "https://checkmark_url.jpg"
return "https://cross_url.jpg"

In the popup definition, create a table. First column is the amenity, second column is an image, image url = expression for that amenity. In the HTML source, it looks like this:

<tr><td>Tent Camping</td><td><img src="{expression/expr10}"></td></tr>
<tr><td>Group Camping</td><td><img src="{expression/expr11}"></td></tr>
<tr><td>Dogs Allowed</td><td><img src="{expression/expr12}"></td></tr>
<!-- and so on -->



For each activity you want to show, create an Arcade expression:

var target_activity = "Hiking" // change this
var activities= Split($feature.Activities, ",")
if(Includes(activities, target_activity )) {
  return "inline"
return "none"

In the popup definition, switch to HTML source. Use the style variable of the img tags to show or hide the activity icons:

<img src="biking_icon_url" style="display: {expression/expr15};">
<img src="hiking_icon_url" style="display: {expression/expr16};">
<img src="fishing_icon_url" style="display: {expression/expr17};">
<!-- and so on -->


Have a great day!
0 Kudos
New Contributor III

Thank you Johannes for the response!  The solution has an arcade expression, but for some reason it doesn't show the check mark in the near me widget in the Web App Builder.  In the expression, you see there is an check mark symbol.  Which I don't understand how they get it in the expression.


0 Kudos
Esri Contributor

Hi Chien,

I wanted to offer some clarity on this. The storymap you referenced in your first message contains links to an older version of the Recreation Outreach solution. The version available now, version 2.0, is the version that contains the Arcade referenced above. It uses a single Arcade expression to list out the Activities and Amenities with the checks, and uses the Nearby Instant App, instead of WebApp Builder.

If you're not seeing the check marks in your pop-up, I would suggest making sure the fields listed in line 2 of Arcade expression are populated with 'Yes' or 'No' in the ParkRecreationFacilities layer. The fields are what drive the pop-up to create the check mark. If the fields aren't populated with anything, no checkmarks will appear.

This should still work in the older WebApp Builder version; the Near Me widget and the Nearby Instant app both use the pop-up and it's Arcade expressions to display results. But the Arcade above has been configured to be used with the Nearby Instant app, and so works better there. 

I hope that clarifies! Please let me know if you have further questions here, or reach out to me directly! I'd love to hear any other pain points or suggestions for improvement on the Park Locator and Recreation Outreach.




0 Kudos
New Contributor III

Thank you Lauren the info!  Yes, all the fields are populated correctly.  I copied the expression from the Nearby Instant app and put it in the Near Me widget and it doesn't display the check mark like it does for the Nearby Instant app.  I don't know, if it is a bug, but the storymap I referenced has those elements (activities/ amenities) working.  I was hoping to be able to see the web map used for Near Me widget.  Would it be possible to have it shared to me?



0 Kudos
Esri Contributor

Hi Chien,

The map is shared publicly here:

I'm not sure if that gets you the information you're looking for, since the pop-up isn't available. But here's the html for the pop-up:


<div style="color:#FFFFFF; text-align: center; background-color:{expression/expr15};padding:5px"><font size="2">{expression/expr14}</font></div>

<div><div style="text-align: center;"><br /><font size="3">{fulladdr}</font><div><a href="{reserveurl} " rel="nofollow ugc" target="_blank"><font size="3"><br />Make a Reservation</font></a><br /></div></div><div style="text-align: center;"><div><a href="{agencyurl}" rel="nofollow ugc" target="_blank"><font size="3">Park Website</font></a></div><font size="3">{numparking} Parking Spaces</font><br /> <br />

<table style="color:black; width: 60%; margin-left: 20% ">
<td height="25" style="color:#000000; text-align:left; font-size:14px">Tent Camping</td><td height="25" style="text-align:center;{expression/expr8}">{expression/expr2}</td></tr>
<td height="25" style="color:#000000; text-align:left; font-size:14px">Group Camping</td>
<td height="25" style="text-align:center;{expression/expr9}">{expression/expr3}</td></tr>
<td height="25" style="color:#000000; text-align:left; font-size:14px">Cabins</td>
<td height="25" style="text-align:center;{expression/expr10}">{expression/expr4}</td></tr>
<td height="25" style="color:#000000; text-align:left; font-size:14px">RV Camping</td>
<td height="25" style="text-align:center;{expression/expr11}">{expression/expr5}</td></tr>
<td height="25" style="color:#000000; text-align:left; font-size:14px">Picnic Areas</td>
<td height="25" style="text-align:center;{expression/expr12}">{expression/expr6}</td></tr>
<td height="25" style="color:#000000; text-align:left; font-size:14px">Dogs Allowed</td>
<td height="25" style="text-align:center;{expression/expr13}">{expression/expr7}</td></tr>

<div style="text-align: left;"><span style="font-size: medium;"><br />{comments}</span></div><font size="3"><div style="text-align: left;"><font size="3"><br /></font><a href="{expression/expr0}" rel="nofollow ugc" target="_blank">Find a place to fish or boat nearby</a><font size="3"><br /></font><a href="{expression/expr1} " rel="nofollow ugc" target="_blank">Find a place to hunt nearby</a><font size="3"><br /> <br /></font></div></font></div></div><div style="text-align: left;"><span style="font-size: medium;">Activities:</span> <br /></div>


The expressions with the check marks are in lines 9-25. Here's an example of the arcade in those expressions:

function symbol(feature){
    /* Yes value returns a Check Mark, No Returns an X */
    var display = iif(feature == "Yes","✔",":cross_mark:")
    return display   


Hopefully that gets you where you'd like to be! If not, feel free to reach out directly at We are always happy to hear how users are deploying our solutions!





0 Kudos