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
741 B
5 lines
741 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","./utils"],function(c,h,d,k,l){c.difference=async function(b,a,e,f){const g=a[0].spatialReference;b=k.parseUrl(b);a={query:{...b.query,f:"json",sr:JSON.stringify(g.toJSON()),geometries:JSON.stringify(l.encodeGeometries(a)),geometry:JSON.stringify({geometryType:d.getJsonType(e),geometry:e.toJSON()})}};f&&(a={...f,...a});return h(b.path+"/difference",a).then(({data:m})=>(m.geometries||[]).map(n=>d.fromJSON(n).set({spatialReference:g})))}; |
|
Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}); |