@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.91 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as s}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import t from"../../core/Error.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as e}from"../../core/accessorSupport/decorators/subclass.js";import a from"../../layers/FeatureLayer.js";let i=class extends o{constructor(s){super(s),this.rulesTableId=null,this.rulesTableUrl=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(){if(!this.associationsTable){const{associationsTableUrl:s}=this;if(!s)throw new t("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(),this.associationsTable}};s([r({constructOnly:!0})],i.prototype,"rulesTableId",void 0),s([r({constructOnly:!0})],i.prototype,"rulesTableUrl",void 0),s([r({constructOnly:!0})],i.prototype,"subnetworksTableId",void 0),s([r({constructOnly:!0})],i.prototype,"subnetworksTableUrl",void 0),s([r({constructOnly:!0})],i.prototype,"dirtyAreasLayerId",void 0),s([r({constructOnly:!0})],i.prototype,"dirtyAreasLayerUrl",void 0),s([r()],i.prototype,"associationsTable",void 0),s([r({constructOnly:!0})],i.prototype,"associationsTableId",void 0),s([r({constructOnly:!0})],i.prototype,"associationsTableUrl",void 0),i=s([e("esri.networks.support.NetworkSystemLayers")],i);export{i as default};