laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000160735
EnvoiAugust 17, 2023
Dernière modificationJune 1, 2025
S’applique àArcGIS Maps SDK for JavaScript
Version trouvée4.26
Système d’exploitationWindows OS
Version du système d’exploitation11.0 64 bit
Version de correction2023.3 / 4.28
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000160735

Logiciel:

  • ArcGIS Maps SDK for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement