UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 888 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */ import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{property as r,subclass as a}from"../../../core/accessorSupport/decorators.js";import{LayerView2D as i}from"./LayerView2D.js";import o from"../../layers/CatalogLayerView.js";let s=class extends(i(o)){constructor(){super(...arguments),this.layerViews=new t}update(e){}viewChange(){}moveEnd(){}attach(){this.addAttachHandles([this._updatingHandles.addOnCollectionChange(()=>this.layerViews,()=>this._updateStageChildren(),{initial:!0})])}detach(){this.container.removeAllChildren()}_updateStageChildren(){this.container.removeAllChildren(),this.layerViews.forEach((e,t)=>this.container.addChildAt(e.container,t))}};e([r()],s.prototype,"layerViews",void 0),s=e([a("esri.views.2d.layers.CatalogLayerView2D")],s);const l=s;export{l as default};