Select to view content in your preferred language

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

10-03-2023 05:42 AM
Labels (2)
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.


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:






Any help is appreciated!









2 Replies
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.


0 Kudos
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