Select to view content in your preferred language

How to Return All Items in a List, No Matter How Close They Are on the Map

90
0
3 weeks ago
CaitlinCacciatore
New Contributor

Hello all,

I was hoping I could receive some help from this community. I have been browsing through the documentation but have been unable to solve a nagging problem in Arcade, namely how to show every feature in a list, no matter how close they are on the map. I have several almost overlapping items that I want to map, and I want all the names to show up.

This is my code so far. I was hoping the wildcard would be useful, alas, it was not. I am very new to Arcade and I apologize in advance if this is a silly question. Hopefully, there's an easy fix!

Thank you,

C

 

 

Expects($feature.School, "*");
var n = null;

for(var attribute in $feature.School) {
  n += $feature.School[attribute];
}

return n;

 

 

0 Kudos
0 Replies