laptop and a wrench

Bug

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

Last Published: May 7, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000117806
SubmittedOctober 30, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.9
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

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]); }); });

Steps to Reproduce

Bug ID: BUG-000117806

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options