Select to view content in your preferred language

How to configure a single pop-up box to display multiple records

435
2
10-03-2023 05:42 AM
Labels (2)
ScottHansen__MDP_
Occasional Contributor

I conducted an adjacency analysis for each school facility in the region. For each school facility, there may be 2-4 schools/records within close proximity. Currently, users must click through each school record using the arrows at the top of the pop-up, in the example below.

ScottHansen__MDP__0-1696336173000.png

I would prefer that users did not have to click through "1 of 3", "2 of 3," and "3 of 3" and could see all of the information up front. I am not looking for an Arcade expression to do any geoprocessing as that has already been done, I just want individual records to be listed in a single pop-up, as illustrated below:

SCHOOL_NAM

ADJ_SCHOOL

ADJ_SCHOOL

ADJ_SCHOOL

ADJ_SCHOOL

Any help is appreciated!

 

 

 

 

 

 

 

 

2 Replies
MarkBockenhauer
Esri Regular Contributor

Yes, its possible with Arcade.   

here is a minimal expression:

// Find the features within the buffere distance and display in popup
var nearbyfeatures = featuresetbyname($map,"Points_w_Names", ['Name'])
var bufferedLocation = Buffer($feature, 15, 'kilometers')
var candidateFacilities = Intersects(nearbyfeatures, bufferedLocation)
var out_str = ''
for (var x in candidateFacilities){
  var fname = DomainName(x, 'Name')
  out_str +=`${fname}`+ TextFormatting.NewLine
}
return out_str

and here is the map to check it out.  https://www.arcgis.com/apps/mapviewer/index.html?webmap=1c0e1599eaa046e5a688c2b192a70fad

 

0 Kudos
ScottHansen__MDP_
Occasional Contributor

Thank you for the response. I see in your code there is buffering and intersecting, which I already did in earlier steps while developing the data. All I want to do is simply display multiple records in a single pop-up. 

0 Kudos