laptop and a wrench

Bogue

Observing a glitch where a polyline graphic with App6D Military Symbology disappears and renders incorrectly at larger scales while zooming in ArcGIS Maps SDK for JavaScript.

ArcGIS Maps SDK for JavaScript
Numéro d’ID de bogue BUG-000172155
EnvoiNovember 8, 2024
Dernière modificationDecember 6, 2024
S’applique àArcGIS Maps SDK for JavaScript
Version trouvée4.30
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

The test app the user provided is working as intended. This is a user error, and the issue will be closed. The spatial reference of the client-side feature layer does not match the spatial reference of the view. The user is not setting the spatial reference on the layer in the test app. In this case, the spatial reference of the layer will default to WGS84. Even if they set it to WGS84, the API will reproject the query results of the layer to match the spatial reference of the view, which in this case is Web Mercator. The issue occurs because the query is issued with tile extents visible in the view, which are reprojected to the layer’s spatial reference (WGS84). The lines in the layer do not intersect the reprojected tile extents, which is why no features are returned. This CodePen app (https://codepen.io/ycabon/pen/VwoRdab?editors=0010) explains the problem. In this app: -The cyan area represents the tile extent in question. -The top view is in Web Mercator, and the bottom view is in WGS84. For best results, set the spatial reference of the layer to match the spatial reference of the view (Web Mercator in this case). This will resolve the issue. Here’s the updated CodePen app (https://codepen.io/U_B_U/pen/NWQJzEZ?editors=1000) for reference.

Étapes pour reproduire

ID de bogue: BUG-000172155

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