I am making a popup with arcade for address points. I am running an intersect on a polygon layer and then trying to decode the variable the object is stored in (sel).
var z1 = 'Jimbob'
var z2 = 'Scuba Steve'
var z3 = 'Stranger'
var z4 = 'Pedestrian'
var sel = Intersects(FeatureSetByName($map, "Zones"), $feature)
return (sel)
//return(FeatureSetByName($map, "Zones"))
return Decode(sel, "BZ1", z1, "BZ2", z2, "BZ3", z3, "BZ4", z4, "Scooby")
When I search an address I get the default "Scooby" even though the address is clearly in one of the other code options.
return(sel) shows the following image: