I'm trying to create a list of lakes (polygon features) within a region (polygon feature) using the Intersect function and have it returned in the regions pop-up. This is what I have thus far, I think it's correct but it's not returning any values. I'm not getting any errors just no data returned. Can anyone see an issue with the expression or have an idea as to why nothing is being returned?
Thanks for any help!
var lakes = Intersects($feature, FeatureSetById($map,"Lake_Report_CRCA_2021_4_9384"))
var lakes_list = ''
for (var f in lakes_list)
{
lakes_list += f.OFFICIAL_N + TextFormatting.NewLine
}
return lakes_list