Hi Doug, Thanks for responding! I have not tried that. When I return the featureset,
return FI //Featureset
the arcade Run shows the table with headings and values, but in the pop up it just says:
How do I access the built-in feature in the popup?
I got this to kind of work, but I don't have a good handle on it. I realize I probably need to use attributes with an array, but I'm struggling to make this work -- I'm having a hard time understanding the syntax in this example. Can you provide a little explanation, or what should I read to really get a good understanding?
var SIA = FeatureSetByName($map, "SIA Transpo FullCouncil - School Impact Areas Full Council",["*"], true);
Console("SIA cnt: "+count(SIA));
var centerPt = Centroid($feature);
var FI = Intersects(SIA, centerPt); //another way to do it, Buffer($feature, -10, 'feet'));
var cntFI = Count(FI);
console(cntFI);
var a = [];
var Plan = [];
for(var item in FI){
var SPA = "School Policy Area: " + item.Sheet1__SchoolPolicyAreaAlt1SPA;
var PA = "Plan Area: "+ item["PlanningArea_Dissolve_4_8_20_Pl"];
Push(a, SPA);
Push(Plan, PA);
}
return {
type: "Fields",
SSP: a,Plan
};
The above script returns the image below in the Pop-up. The top is Text content showing the expression and the lower is the expression in a Field List window. "SIA Arcade Exp" is the name of the expression. I also expect only one feature in the featureset, and I'm missing validation checks in the script. I'll add these once I'm over this hump. Thanks in advance for any help and advice. 😀 -Josh