| Numéro d’ID de bogue |
BUG-000115609 |
| Envoi | July 24, 2018 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 4.7 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 |
| Statut | Non-Reproducible
Ce problème n’a pas pu être reproduit au cours des tests réalisés par l’équipe de développement. Ce statut peut être attribué aux problèmes qui sont impossibles à reproduire ou qui ne sont plus d’actualité dans une version de développement du logiciel, alors qu’aucun correctif spécifique n’a été installé pour résoudre le problème. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
Please use the PopupTemplate.outFields property as described in https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields to fix this.
Solution de contournement
- 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.
Étapes pour reproduire