Hello,
I am attempting to run an Attribute rule that runs an Intersect on a polygon layer with stacked polygons. Think of this as Floor levels of a building.
I am attempting to create an attribute rule that will intersect only the visible features on a map and return the existing value.
My code (arcade) is:
var fs = FeatureSetByName($datastore, "DBO.EAMFacility", ["fullname"])
var fsIntersect = [Intersects(fs, $feature)]
var loc = Back(fsIntersect)
if (fullname == null) return {"errorMessage": "Area not found."}
return loc.fullnameInstead of intersecting layers that are turned on (I'm using definition queries to isolate Assets and Facilities based on Floor level), it is returning the first polygon it encounters.
Any help would be appreciated.