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.
 
 

7 lines
2.1 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../../chunks/tslib.es6 ../../geometry ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/Polygon ../../geometry/SpatialReference ../../geometry/support/jsonUtils ../../geometry/support/spatialReferenceUtils".split(" "),function(b,n,a,p,d,x,y,z,q,r,h,t,g){const u=new a.JSONMap({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",
109001:"yards"});a=class extends p.JSONSupport{constructor(c){super(c);this.distances=this.bufferSpatialReference=null;this.geodesic=!1;this.outSpatialReference=this.geometries=null;this.unionResults=!1;this.unit=null}toJSON(){const c={unit:u.toJSON(this.unit),unionResults:this.unionResults,geodesic:this.geodesic},k=this.distances,l=this.outSpatialReference,m=this.bufferSpatialReference,e=this.geometries;if(e&&0<e.length){const v=e.map(f=>{f="extent"===f.type?r.fromExtent(f):f;return f.toJSON()}),
w="extent"===e[0].type?"esriGeometryPolygon":t.getJsonType(e[0]);c.geometries=JSON.stringify({geometryType:w,geometries:v});c.inSR=g.srToRESTValue(e[0].spatialReference)}k&&(c.distances=k.join(","));l&&(c.outSR=g.srToRESTValue(l));m&&(c.bufferSR=g.srToRESTValue(m));return c}};b.__decorate([d.property({type:h,json:{write:!0}})],a.prototype,"bufferSpatialReference",void 0);b.__decorate([d.property({type:[Number],json:{write:!0}})],a.prototype,"distances",void 0);b.__decorate([d.property({type:Boolean,
json:{write:!0}})],a.prototype,"geodesic",void 0);b.__decorate([d.property({types:[n.geometryTypes],json:{write:!0}})],a.prototype,"geometries",void 0);b.__decorate([d.property({type:h,json:{write:!0}})],a.prototype,"outSpatialReference",void 0);b.__decorate([d.property({type:Boolean,json:{write:!0}})],a.prototype,"unionResults",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],a.prototype,"unit",void 0);return a=b.__decorate([q.subclass("esri.rest.support.BufferParameters")],a)});