You can do this easily enough with if... else if... else.
// Get other layers from map
var fs1 = FeatureSetByName($map, "United Kingdom LSOA Boundaries 2019", ['NAME'], true)
var fs2 = FeatureSetByName($map, "Some Other Layer", ['NAME'], true)
// Get intersections
var int1 = First(Intersects($feature, fs1))
var int2 = First(Intersects($feature, fs2))
// Check first intersection
if(!IsEmpty(int1)) {
return Proper(int1.NAME, 'everyword')
// Check second intersection
} else if(!IsEmpty(int2)) {
return Proper(int2.NAME, 'everyword')
} else {
return "Private Land"
}
Are there situations in which there might be an intersection from both layers, though?
- Josh Carlson
Kendall County GIS