| 漏洞 ID 编号 |
BUG-000115609 |
| 已提交 | July 24, 2018 |
| 上次修改时间 | June 5, 2024 |
| 适用范围 | ArcGIS API for JavaScript |
| 找到的版本 | 4.7 |
| 操作系统 | Windows OS |
| 操作系统版本 | 10.0 |
| 状态 | Non-Reproducible
在开发团队测试过程中,此问题不可重现。 为问题分配此状态的可能原因包括:问题无法重现,或不再与软件的开发版本相关,但未安装特定修复程序来解决该问题。 问题的“其他信息”部分可能包含进一步说明。
|
附加信息
Please use the PopupTemplate.outFields property as described in https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields to fix this.
解决办法
- Use FeatureLayer class and add them to the map instead of MapImageLayer. This works in versions 4.6 to 4.8
- Open the sample application at - https://jsbin.com/qazoxisefo/edit?html,output
- The popup returns the population in year 2000 correctly.
- Change the API version to 4.7 and then to 4.8 and run again.
- The sample works correctly in the 4.7 and 4.8 version as well.
Checking the feature.graphic.attributes shows all the attributes. This can be verified by putting a breakpoint in debugger mode at line number 55, and checking the value of the feature object.
重现步骤