laptop and a wrench

漏洞

Loading the feature layer with WKID: 2326 using SceneView in ArcGIS Map SDK JavaScript results in an intermittent warning in the Console [Graphic in layer has incompatible spatial reference and will not render] which causes the layer to not load fully.

ArcGIS Maps SDK for JavaScript
漏洞 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 Maps SDK for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项