General Info
- I have point rest service layer titled "dams" (National Dam Inventory). It contains the location of dams for every state in the U.S.
- I have a hosted polygon layer titled "basin". It represents the Savannah River Basin.
- My ultimate goal is to only show the dams that are within the river basin. I feel like I'm close using my current code but I might be wrong. Is what I'm attempting possible, is my code headed in the right direction, or is there a better way to do this?
- Please let me know if there is any other information I can provide, kind regards and thanks
Current Attempt
1 var intersectLayer =Intersects(FeatureSetByName($map,"basin"), $feature)
2 for (var f in intersectLayer){
3 return f.FID
4 }
- This expression is built on the point data and called "Filter"
- The basin polygon only has one field (FID) and their is only one shape so the above arcade returns "1" for points inside the polygon and " " (blank) for points outside the polygon. I guess my question is how can I symbolize on this?
