Hello!
I have two polygon layers - buildings and neighborhood zones. I need in pop up to display whether a building is located in those zones or is not.
I use this Arcade expression and it works in ArcGIS Pro:
var zones = FeatureSetByName($map, 'NB_zones', ["*"]);
var intersects = Intersects($feature, zones);
var firstFeature = First(intersects);
if (firstFeature != null) {
return "Building is in the zone";
} else {
return "Building is not in the zone";
}
So, this expression perfectly works in ArcGIS Pero but not working in ArcGIS Online Mapviewer.
What's wrong with the expression in AGOL and must be used (written) instead?