Hi everyone,
I am pretty new to arcade and have been working in ArcGIS Online and using Arcade to customize the popup for a parcels layer. On the map I have the following layers: Parcels, Floodplains, Sign Zones, and Incentive Zones.
I have an arcade expression on the Parcels layer that checks to see if a parcel is in a Sign Zone which does work for the most part.
var signs = FeatureSetByName($map, "Sign_Zones")
var sIntersects = Intersects($feature, signs)
if (Count(sIntersects) > 0){
return{
type : "text",
text : "This parcel is within a Sign Zone "
}
}
What I can't get to work, however, are the type/text lines. I want to pull the "Zone Name" Attribute from the Sign Zone layer so that it can read something like this: "Parcel is within Sign Zone 1". Or something along those lines to provide more info to the end user, instead of just saying that it is within a sign zone. I have tried a couple of different ways and I just can't figure it out. Any help would be greatly appreciated!
Could you have more than one sign within a parcel? If so it might be best to build an error of all the signs and then concatenate to a signal return string