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
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 ../../request ../../core/JSONSupport ../../core/Loadable ../../core/Logger ../../core/Promise ../../core/accessorSupport/decorators/property ../../core/has ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,h,e,k,l,m,d,b,n,g){b=class extends e.JSONSupport{constructor(){super(...arguments);this.subLayerIds=this.mostFrequentValues=this.max=this.min=this.label=this.modelName=this.fieldName=null}};a.__decorate([d.property({type:String})], |
|
b.prototype,"fieldName",void 0);a.__decorate([d.property({type:String})],b.prototype,"modelName",void 0);a.__decorate([d.property({type:String})],b.prototype,"label",void 0);a.__decorate([d.property({type:Number})],b.prototype,"min",void 0);a.__decorate([d.property({type:Number})],b.prototype,"max",void 0);a.__decorate([d.property({json:{read:c=>Array.isArray(c)&&(c.every(f=>"string"===typeof f)||c.every(f=>"number"===typeof f))?c.slice():null}})],b.prototype,"mostFrequentValues",void 0);a.__decorate([d.property({type:[Number]})], |
|
b.prototype,"subLayerIds",void 0);b=a.__decorate([g.subclass("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],b);e=class extends k.LoadableMixin(m.EsriPromiseMixin(e.JSONSupport)){constructor(){super(...arguments);this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(l.getLogger(this).error("building summary statistics are not loaded"),null)}load(c){this.addResolvingPromise(this._fetchService(null!=c?c.signal:null));return Promise.resolve(this)}async _fetchService(c){c= |
|
(await h(this.url,{query:{f:"json"},responseType:"json",signal:c})).data;this.read(c,{origin:"service"})}};a.__decorate([d.property({constructOnly:!0,type:String})],e.prototype,"url",void 0);a.__decorate([d.property({readOnly:!0,type:[b],json:{read:{source:"summary"}}})],e.prototype,"fields",null);return e=a.__decorate([g.subclass("esri.layers.support.BuildingSummaryStatistics")],e)}); |