@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 2.09 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as s}from"tslib";import t from"../../core/Accessor.js";import o from"../../core/Error.js";import{property as e,subclass as r}from"../../core/accessorSupport/decorators.js";import a from"../../layers/FeatureLayer.js";let l=class extends t{constructor(s){super(s),this.rulesTableId=null,this.rulesTableUrl=null,this.subnetworksTable=null,this.subnetworksTableId=null,this.subnetworksTableUrl=null,this.dirtyAreasLayerId=null,this.dirtyAreasLayerUrl=null,this.associationsTable=null,this.associationsTableId=null,this.associationsTableUrl=null}destroy(){this.associationsTable?.destroy()}async loadAssociationsTable(s){if(!this.associationsTable){const{associationsTableUrl:s}=this;if(!s)throw new o("utility-network-system-layers:missing-associations-table-url","Unable to load the associations table, as the `associationsTableUrl` is not set.");this.associationsTable=new a({url:s})}return await this.associationsTable.load(s),this.associationsTable}async loadSubnetworksTable(s){if(!this.subnetworksTable){const{subnetworksTableUrl:s}=this;if(!s)throw new o("utility-network-system-layers:missing-subnetworks-table-url","Unable to load the subnetworks table, as the `subnetworksTableUrl` is not set.");this.subnetworksTable=new a({url:s})}return await this.subnetworksTable.load(s),this.subnetworksTable}};s([e({constructOnly:!0})],l.prototype,"rulesTableId",void 0),s([e({constructOnly:!0})],l.prototype,"rulesTableUrl",void 0),s([e()],l.prototype,"subnetworksTable",void 0),s([e({constructOnly:!0})],l.prototype,"subnetworksTableId",void 0),s([e({constructOnly:!0})],l.prototype,"subnetworksTableUrl",void 0),s([e({constructOnly:!0})],l.prototype,"dirtyAreasLayerId",void 0),s([e({constructOnly:!0})],l.prototype,"dirtyAreasLayerUrl",void 0),s([e()],l.prototype,"associationsTable",void 0),s([e({constructOnly:!0})],l.prototype,"associationsTableId",void 0),s([e({constructOnly:!0})],l.prototype,"associationsTableUrl",void 0),l=s([r("esri.networks.support.NetworkSystemLayers")],l);export{l as default};