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.0 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 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./BarChartMediaInfo ./ColumnChartMediaInfo ./Content ./ImageMediaInfo ./LineChartMediaInfo ./PieChartMediaInfo ./support/mediaInfoTypes".split(" "),function(c,g,e,b,w,h,k,l,m,n,p,q,r,t,u){var f;b=f=class extends p{constructor(d){super(d);
this.title=this.mediaInfos=this.description=this.attributes=this.activeMediaInfoIndex=null;this.type="media"}readMediaInfos(d){return d&&d.map(a=>{if("image"===a.type)return q.fromJSON(a);if("barchart"===a.type)return m.fromJSON(a);if("columnchart"===a.type)return n.fromJSON(a);if("linechart"===a.type)return r.fromJSON(a);if("piechart"===a.type)return t.fromJSON(a)}).filter(Boolean)}writeMediaInfos(d,a){a.mediaInfos=d&&d.map(v=>v.toJSON())}clone(){return new f(g.clone({activeMediaInfoIndex:this.activeMediaInfoIndex,
attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};c.__decorate([e.property()],b.prototype,"activeMediaInfoIndex",void 0);c.__decorate([e.property({type:Object,json:{write:!0}})],b.prototype,"attributes",void 0);c.__decorate([e.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);c.__decorate([e.property({types:[u.types]})],b.prototype,"mediaInfos",void 0);c.__decorate([h.reader("mediaInfos")],b.prototype,"readMediaInfos",
null);c.__decorate([l.writer("mediaInfos")],b.prototype,"writeMediaInfos",null);c.__decorate([e.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);c.__decorate([e.property({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0);return b=f=c.__decorate([k.subclass("esri.popup.content.MediaContent")],b)});