漏洞 ID 编号 |
BUG-000179915 |
已提交 | October 3, 2025 |
上次修改时间 | October 12, 2025 |
适用范围 | ArcGIS Field Maps |
找到的版本 | 25.2.0 |
操作系统 | Apple iOS |
操作系统版本 | 18.x |
状态 | Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
|
附加信息
In the latest release of ArcGIS Field Maps, this is not a valid expression since the variable being accessed in the return expression has not been declared when the FeatureSet is empty. To remedy this, move the declaration of the variable in the for loop outside the loop.
var wetlands = FeatureSetByName($map, "Layer 2");
var intNWis = Intersects($feature, wetlands);
var intwetland;
for (var n in intNWls){
intwetland = n.ATTRIBUTE;
return intwetland;
解决办法
Add a conditional statement to return the FeatureSet only when the count is not zero:
if(Count(featureSetName)>0){}
重现步骤