laptop and a wrench

Error

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
Número de ID del error BUG-000160735
EnviadoAugust 17, 2023
Última modificaciónJune 1, 2025
Relacionado conArcGIS Maps SDK for JavaScript
Versión encontrada4.26
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
Versión corregida2023.3 / 4.28
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000160735

Software:

  • ArcGIS Maps SDK for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga