| Numéro d’ID de bogue |
BUG-000179324 |
| Envoi | September 8, 2025 |
| Dernière modification | December 22, 2025 |
| S’applique à | ArcGIS Maps SDK for JavaScript |
| Version trouvée | 4.33 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 11.0 64 bit |
| Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
This behavior is expected. This is creating lines using latitude and longitude coordinates (WGS 84) but displaying them on a Web Mercator map. In this setup, the feature layer’s spatial reference is WGS 84, while the map uses Web Mercator. When the JavaScript API reprojects the feature tile extents from Web Mercator (102100) to WGS 84 (4326), the reprojected extents no longer overlap the lines.
Because of this, the lines are not displayed at all.
This can be resolved by:
- Setting the layer’s spatial reference to match the map view.
- Using geometries in the same spatial reference as the map view.
- Densifying the geometry (adding more points) so it correctly intersects the visible area.
Option 1 is most straightforward in this case and here is the codepen updated - https://codepen.io/U_B_U/pen/LEGoxzX?editors=1000.
Étapes pour reproduire
ID de bogue: BUG-000179324
Logiciel:
- ArcGIS Maps SDK for JavaScript