Select to view content in your preferred language

How to Use Attributes from Different Layers in a Print Statement?

417
1
10-24-2023 08:00 AM
Labels (2)
RemyShipman
New Contributor

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!

0 Kudos
1 Reply
RyanBohan
Regular Contributor

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

RyanBohan_0-1698169306340.png

 

0 Kudos