| Número de ID del error |
BUG-000115609 |
| Enviado | July 24, 2018 |
| Última modificación | June 5, 2024 |
| Relacionado con | ArcGIS API for JavaScript |
| Versión encontrada | 4.7 |
| Sistema operativo | Windows OS |
| Versión de sistema operativo | 10.0 |
| Estado | Non-Reproducible
Este problema no se pudo reproducir cuando lo probó el equipo de desarrollo. Los problemas pueden recibir este estado cuando no se pueden reproducir o ya no son relevantes en una versión de desarrollo del software, pero no se ha instalado una solución específica para solucionar el problema. La sección Información adicional del problema puede contener más explicaciones.
|
Información adicional
Please use the PopupTemplate.outFields property as described in https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields to fix this.
Solución alternativa
- 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.
Pasos para reproducir