| Número de ID do Erro |
BUG-000115609 |
| Enviado | July 24, 2018 |
| Última Modificação | June 5, 2024 |
| Aplica-se à | ArcGIS API for JavaScript |
| Versão encontrada | 4.7 |
| Sistema Operacional | Windows OS |
| Versão do Sistema Operacional | 10.0 |
| Status | Non-Reproducible
Esse problema não foi reproduzível quando testado pela equipe de desenvolvimento. Os problemas podem receber esse status quando não podem ser reproduzidos ou não são mais relevantes em uma versão de desenvolvimento do software, mas uma correção específica não foi instalada para resolver o problema. A seção Informações Adicionais do problema pode conter mais explicações.
|
Informações Adicionais
Please use the PopupTemplate.outFields property as described in https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields to fix this.
Solução Provisória
- 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.
Etapas para Reproduzir