laptop and a wrench

Bogue

The AreasAndLengths method is not executed with the result of simplify method while working with GeometryService Class.

Dernière publication: May 7, 2019 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000117806
EnvoiOctober 30, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.9
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

Use the following function: geometryService.simplify([polygon]).then(function(simplifiedGeometries){ var areasAndLengthParams = new AreasAndLengthsParameters({ areaUnit: "square-kilometers", lengthUnit: "kilometers", polygons: simplifiedGeometries //notice no array here since simplifiedGeometries is already an array }); geometryService.areasAndLengths(areasAndLengthParams).then(function(results){ console.log("area: ", results.areas[0]); console.log("length: ", results.lengths[0]); }); });

Étapes pour reproduire

ID de bogue: BUG-000117806

Logiciel:

  • ArcGIS API 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