AnsweredAssumed Answered

Pull features where clicked when using Arcade Intersects

Question asked by Davidkrady_dep on Aug 7, 2020
Latest reply on Aug 7, 2020 by xander_bakker


I'm using the Arcade Intersects function to pull intersecting layer information and place it within a popup. I've come across a situation where multiple polygons (red border) from one layer intersect my main layer (yellow squares) and the popup only returns a single feature. Is it possible to pull the intersecting feature information where clicked on the map? 



Example: The eastern side of the red line is zone 13 and the western side is zone 36. When clicked only the zone 13 information is populated within the popup. Is it possible to pull the information from the intersecting layer where clicked on the map? 


Arcade Expression: 

var intersectLayer = Intersects(FeatureSetByName($map,"Deer Management Zones"), $feature)

for (var f in intersectLayer){
return text(f.DMZ)