Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

4 lines
662 B

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define(["exports","../../core/jsonMap","../../geometry/support/spatialReferenceUtils"],function(b,g,h){const k=new g.JSONMap({preserveShape:"preserve-shape"});b.lengthsToRESTParameters=function(c){const {polylines:l,lengthUnit:d,geodesic:e,calculationType:f}=c.toJSON(),a={};a.polylines=JSON.stringify(l);a.sr=h.srToRESTValue(c.polylines[0].spatialReference);d&&(a.lengthUnit=d);e&&(a.geodesic=e);f&&(a.calculationType=k.toJSON(f));return a};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});