漏洞
漏洞 ID 编号 | BUG-000160735 |
---|---|
已提交 | August 17, 2023 |
上次修改时间 | June 1, 2025 |
适用范围 | ArcGIS Maps SDK for JavaScript |
找到的版本 | 4.26 |
操作系统 | Windows OS |
操作系统版本 | 11.0 64 bit |
修正版本 | 2023.3 / 4.28 |
状态 | 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: BUG-000160735
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序