Hi
I am confused to calculate total length of line feature with arcgis API for java script.
any one can help me...???
I found following code but it's not working.
let geometryService = new GeometryService({
url:url
})
geometryService.simplify([line]).then(function (line) {
var areasAndLengthParams = new LengthsParameters({
lengthUnit: "kilometers",
polylines: line
});
console.log(areasAndLengthParams)
});