I am working on an Arcade script that will use a parcel layer to intersect with a zoning layer and return the zoning that intersects with the parcel. I have successfully gotten the two layers to intersect and return the zoning, the issue is that the data is not clean, so I need to return the value that intersects with the center of the parcel. My code looks like this:
var other_layer = (FeatureSetByName($map, "Zoning Layer", ["Zoning"]))
var firstfeature = First(Intersects($Feature, other_layer));
return firstfeature["Zoning"];
Can anyone help me alter this to get the intersection of the center. Any help would be greatly appreciated.