Select to view content in your preferred language

Pull features where clicked when using Arcade Intersects

3660
11
08-07-2020 10:51 AM
DaveK
by
Frequent Contributor

Hello! 

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)
}$map

Thanks! 

Tags (2)
0 Kudos
11 Replies
MJH
by
Emerging Contributor

Is there a simple arcade example of the $userInput variable to pull values from a layer the click intersects. 

 

0 Kudos
ZenMasterZeke
Frequent Contributor
0 Kudos