Bogue
Numéro d’ID de bogue | BUG-000160735 |
---|---|
Envoi | August 17, 2023 |
Dernière modification | June 1, 2025 |
S’applique à | ArcGIS Maps SDK for JavaScript |
Version trouvée | 4.26 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 11.0 64 bit |
Version de correction | 2023.3 / 4.28 |
Statut | Fixed |
After setting the query return format to JSON (the default format is PBF), the issue no longer occurs. Therefore, it is possible to monitor service requests within the program and modify the value of the supportedQueryFormats parameter in the request response to JSON. This ensures that all subsequent query requests use the JSON format for data transmission and parsing.
Here is the sample code to modify the value of the supportedQueryFormats parameter in the request response to JSON:
esriConfig.request.interceptors.push({
urls: /FeatureServer\/\d+$/,
after: function (response) {
response.data.supportedQueryFormats = "JSON";
}
})
Here is the full HTML code with the supportedQueryFormats: https://codepen.io/ChungEsri/pen/KKbKNOL?editors=1000
ID de bogue: BUG-000160735
Logiciel:
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support