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.
6 lines
1.6 KiB
6 lines
1.6 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/Collection ../../core/loadAll ../../core/Warning ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./BuildingComponentSublayer ./BuildingSublayer".split(" "),function(g,k,p,q,l,v,w,x,r,t,u){function m(a,e,f){if(a&&Array.isArray(a))return new k(a.map(c=>{var b="group"===c.layerType?d:t;if(b)return b=new b,b.read(c,f),b;f?.messages&&c&&f.messages.push(new q("building-scene-layer:unsupported-sublayer-type", |
|
"Building scene sublayer of type '"+(c.type||"unknown")+"' are not supported",{definition:c,context:f}));return null}))}var h;const n={type:k,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:m}}},read:!1}};let d=h=class extends u{constructor(a){super(a);this.type="building-group";this.listMode="show";this.sublayers=null}loadAll(){return p.loadAllChildren(this,a=>h.forEachSublayer(this.sublayers,e=>{"building-group"!==e.type&&a(e)}))}};g.__decorate([l.property({type:["hide","show", |
|
"hide-children"],json:{write:!0}})],d.prototype,"listMode",void 0);g.__decorate([l.property(n)],d.prototype,"sublayers",void 0);d=h=g.__decorate([r.subclass("esri.layers.buildingSublayers.BuildingGroupSublayer")],d);(function(a){function e(f,c){f.forEach(b=>{c(b);"building-group"===b.type&&e(b.sublayers,c)})}a.sublayersProperty=n;a.readSublayers=m;a.forEachSublayer=e})(d||={});return d}); |