HI I want to write an Arcade expression in a pop up.
I have two polygon layers in my web map
Suburb polygon and Flood polygon
I want to appear the name of the suburb in the flood event pop up when click on the suburb layer
My expression is
var SI = FeatureSetByName($map,"Suburb")
var int = First(Intersects($feature, SI))
return int.Suburb
The expression returns a suburb name but it returns the same name all the time for example "suburb 1". If I click in another suburb it still return the name "suburb 1"