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.
 
 

5 lines
709 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 ../../request ../../geometry/support/jsonUtils ../utils ../operations/generalize ../support/GeneralizeParameters".split(" "),function(d,f,g,e,h,k){d.generalize=async function(b,a,c){a=k.from(a);const l=a.toJSON();a=h.generalizeToRESTParameters(a);b=e.parseUrl(b);const m=l.geometries[0].spatialReference;c=e.asValidOptions({...b.query,f:"json",...a},c);return f(b.path+"/generalize",c).then(({data:n})=>(n.geometries||[]).map(p=>g.fromJSON(p).set({spatialReference:m})))};Object.defineProperty(d,
Symbol.toStringTag,{value:"Module"})});