123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681 |
- import {
- l as l4,
- t as t6
- } from "./chunk-Z25OS74A.js";
- import {
- l as l3,
- m as m4,
- s as s5,
- u
- } from "./chunk-M7HZTZK5.js";
- import {
- A,
- K,
- n as n4
- } from "./chunk-C62PEMUB.js";
- import "./chunk-5ZZSM3DU.js";
- import "./chunk-BQ7UE3XL.js";
- import "./chunk-UILPRJKY.js";
- import {
- Ke
- } from "./chunk-6NQ3AA2U.js";
- import "./chunk-524XACB7.js";
- import "./chunk-XKHC7KKF.js";
- import "./chunk-HGDNY7J3.js";
- import "./chunk-GD5TMIPM.js";
- import {
- l as l2
- } from "./chunk-ZRX5UNQH.js";
- import "./chunk-VEAEIBHK.js";
- import "./chunk-6SASJ6IM.js";
- import "./chunk-3OHML7FO.js";
- import "./chunk-JGOAMEPM.js";
- import "./chunk-Z64YKYHD.js";
- import "./chunk-2VFJVI2I.js";
- import "./chunk-F37AVPUF.js";
- import "./chunk-FUEX356Y.js";
- import "./chunk-TNLRDNTC.js";
- import "./chunk-OSNKP4CI.js";
- import "./chunk-435DJNTD.js";
- import "./chunk-T3EUPDKL.js";
- import {
- t as t3
- } from "./chunk-QY775BFA.js";
- import "./chunk-2SJEIKRW.js";
- import {
- i,
- n as n2
- } from "./chunk-5MVUZO4F.js";
- import "./chunk-PHRSJJ3U.js";
- import "./chunk-VVBOYBFX.js";
- import "./chunk-S7R5EXHN.js";
- import {
- i as i2
- } from "./chunk-FMKGHOGD.js";
- import {
- p as p3
- } from "./chunk-6URTNEGN.js";
- import "./chunk-KN7TOKVN.js";
- import "./chunk-RQJNTZAL.js";
- import "./chunk-QTOOFNRV.js";
- import "./chunk-7O56JPWQ.js";
- import "./chunk-6B2LQBKM.js";
- import {
- d as d4
- } from "./chunk-MFI6BALW.js";
- import {
- n as n3
- } from "./chunk-CIG5OHC7.js";
- import "./chunk-FUD7XO3N.js";
- import "./chunk-6EU7GFUT.js";
- import "./chunk-MFUAILAT.js";
- import "./chunk-HZJYXMI6.js";
- import "./chunk-27P5ZSC7.js";
- import "./chunk-UPD4MTCL.js";
- import "./chunk-GRBROWI6.js";
- import "./chunk-5NKYXKIA.js";
- import "./chunk-MPWGHCZG.js";
- import "./chunk-FTI5VP6T.js";
- import "./chunk-RZFGRBD7.js";
- import {
- B
- } from "./chunk-PUSPZYFZ.js";
- import {
- t as t5
- } from "./chunk-EN7YGJWG.js";
- import "./chunk-VBNMTM7L.js";
- import "./chunk-3D3QEPRE.js";
- import "./chunk-JFNNSBWL.js";
- import {
- b
- } from "./chunk-UD63WBG3.js";
- import "./chunk-X7DBH4KK.js";
- import "./chunk-LY74KTXV.js";
- import "./chunk-EWE6EXPY.js";
- import "./chunk-KUXNUNAI.js";
- import {
- d as d2
- } from "./chunk-KMAHKQ2G.js";
- import "./chunk-522WBHUO.js";
- import "./chunk-WNCU6BFU.js";
- import "./chunk-PIGRDDRG.js";
- import "./chunk-BJHM4JNS.js";
- import "./chunk-F6A2QQ26.js";
- import "./chunk-XLV7RUSE.js";
- import "./chunk-NTUXR253.js";
- import "./chunk-EOSZHC5H.js";
- import "./chunk-C43UE3Z5.js";
- import {
- p
- } from "./chunk-V7H6CJ37.js";
- import "./chunk-H2KDMZTR.js";
- import "./chunk-RMX2AZ4P.js";
- import "./chunk-NE3ESGA6.js";
- import "./chunk-YIS6BAC3.js";
- import "./chunk-7XXXCK2A.js";
- import {
- r as r2
- } from "./chunk-7ZIDBK7B.js";
- import {
- v
- } from "./chunk-KHA63LLS.js";
- import {
- c
- } from "./chunk-FGKNEJKJ.js";
- import {
- d as d3,
- j as j2,
- p as p2,
- x,
- y
- } from "./chunk-PSV473TI.js";
- import {
- O,
- S as S2
- } from "./chunk-I3OBGWNS.js";
- import "./chunk-FONIFA5N.js";
- import "./chunk-EG5OI4V4.js";
- import "./chunk-65BYCSII.js";
- import "./chunk-WZQZRKNH.js";
- import "./chunk-LRDX4TO7.js";
- import "./chunk-6A4U74YA.js";
- import "./chunk-CYI7KFYB.js";
- import "./chunk-5LXROFTA.js";
- import "./chunk-GJXW4HL5.js";
- import "./chunk-WJW5DUN6.js";
- import {
- t as t4
- } from "./chunk-W72F6AS3.js";
- import "./chunk-PJ7ZQ4VD.js";
- import "./chunk-WDLTDV2L.js";
- import "./chunk-TERAW6FT.js";
- import "./chunk-N2663GRX.js";
- import "./chunk-O4FY3ITT.js";
- import "./chunk-WEMIK25H.js";
- import {
- b as b2
- } from "./chunk-4DDBH2K5.js";
- import {
- s as s4
- } from "./chunk-7N4X6GF3.js";
- import "./chunk-JXW4QTJA.js";
- import "./chunk-UXF37FQ4.js";
- import "./chunk-ZOEK6QHJ.js";
- import "./chunk-XNLG7T2T.js";
- import "./chunk-IR4PV7VK.js";
- import "./chunk-2Z6LERTI.js";
- import "./chunk-OWVBLVP3.js";
- import "./chunk-AFZ7XSEW.js";
- import "./chunk-EGZW6HC3.js";
- import "./chunk-4NKD334K.js";
- import "./chunk-65K7LC56.js";
- import "./chunk-ATPLLI5W.js";
- import "./chunk-WJ3OEUD3.js";
- import "./chunk-MXB2XLKV.js";
- import "./chunk-XH7RUGVZ.js";
- import {
- m as m3
- } from "./chunk-TBBTRX4O.js";
- import {
- m as m2
- } from "./chunk-YBSUITLL.js";
- import {
- j
- } from "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import {
- U
- } from "./chunk-VNFRAYHO.js";
- import "./chunk-R5IG2D6H.js";
- import {
- G
- } from "./chunk-VBRY5KJM.js";
- import {
- s as s3
- } from "./chunk-PDKDCAAD.js";
- import {
- M2 as M,
- o
- } from "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import {
- k2 as k
- } from "./chunk-MRJEICT6.js";
- import {
- d,
- e,
- l3 as l,
- n2 as n,
- t as t2
- } from "./chunk-Y3WMVFTW.js";
- import "./chunk-SAS7RONY.js";
- import "./chunk-WSRBH7BF.js";
- import {
- S
- } from "./chunk-IHXECKQQ.js";
- import {
- w
- } from "./chunk-ULGDPLM2.js";
- import {
- s,
- s3 as s2
- } from "./chunk-EMJ4ZSM2.js";
- import {
- m
- } from "./chunk-IKP3YN53.js";
- import {
- r,
- t
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/layers/buildingSublayers/BuildingSublayer.js
- var l5 = class extends s4(S2) {
- constructor(r3) {
- super(r3), this.title = "", this.id = -1, this.modelName = null, this.isEmpty = null, this.visible = true, this.opacity = 1;
- }
- readTitle(r3, e3) {
- return typeof e3.alias == "string" ? e3.alias : typeof e3.name == "string" ? e3.name : "";
- }
- readIdOnlyOnce(r3) {
- return this.id !== -1 ? this.id : typeof r3 == "number" ? r3 : void 0;
- }
- };
- e([d({ type: String, json: { origins: { "web-scene": { write: true }, "portal-item": { write: true } } } })], l5.prototype, "title", void 0), e([o("service", "title", ["alias", "name"])], l5.prototype, "readTitle", null), e([d()], l5.prototype, "layer", void 0), e([d({ type: S, readOnly: true, json: { read: false, write: { ignoreOrigin: true } } })], l5.prototype, "id", void 0), e([o("service", "id")], l5.prototype, "readIdOnlyOnce", null), e([d(y(String))], l5.prototype, "modelName", void 0), e([d(y(Boolean))], l5.prototype, "isEmpty", void 0), e([d({ type: Boolean, json: { name: "visibility", write: true } })], l5.prototype, "visible", void 0), e([d({ type: Number, json: { write: true } })], l5.prototype, "opacity", void 0), l5 = e([n("esri.layers.buildingSublayers.BuildingSublayer")], l5);
- var n5 = l5;
- // node_modules/@arcgis/core/layers/buildingSublayers/BuildingComponentSublayer.js
- var P = s.getLogger("esri.layers.buildingSublayers.BuildingComponentSublayer");
- var D = l2();
- var Q = class extends m3.LoadableMixin(m2(n5)) {
- constructor(e3) {
- super(e3), this.type = "building-component", this.nodePages = null, this.materialDefinitions = null, this.textureSetDefinitions = null, this.geometryDefinitions = null, this.serviceUpdateTimeStamp = null, this.fields = null, this.associatedLayer = null, this.outFields = null, this.listMode = "show", this.renderer = null, this.definitionExpression = null, this.popupEnabled = true, this.popupTemplate = null, this.layerType = "3d-object";
- }
- get parsedUrl() {
- return this.layer ? { path: `${this.layer.parsedUrl.path}/sublayers/${this.id}`, query: this.layer.parsedUrl.query } : null;
- }
- get fieldsIndex() {
- return new d2(this.fields);
- }
- readAssociatedLayer(e3, r3) {
- const t10 = this.layer.associatedFeatureServiceItem, o2 = r3.associatedLayerID;
- return r(t10) && typeof o2 == "number" ? new Ke({ portalItem: t10, layerId: o2 }) : null;
- }
- get objectIdField() {
- if (this.fields != null) {
- for (const e3 of this.fields)
- if (e3.type === "oid")
- return e3.name;
- }
- return null;
- }
- get displayField() {
- return r(this.associatedLayer) ? this.associatedLayer.displayField : null;
- }
- get apiKey() {
- return this.layer.apiKey;
- }
- get fullExtent() {
- return this.layer.fullExtent;
- }
- get spatialReference() {
- return this.layer.spatialReference;
- }
- get version() {
- return this.layer.version;
- }
- get elevationInfo() {
- return this.layer.elevationInfo;
- }
- get minScale() {
- return this.layer.minScale;
- }
- get maxScale() {
- return this.layer.maxScale;
- }
- get effectiveScaleRange() {
- return this.layer.effectiveScaleRange;
- }
- get defaultPopupTemplate() {
- return this.createPopupTemplate();
- }
- load(e3) {
- const r3 = r(e3) ? e3.signal : null, t10 = this._fetchService(r3).then(() => {
- this.indexInfo = n4(this.parsedUrl.path, this.rootNode, this.nodePages, this.apiKey, P, r3);
- });
- return this.addResolvingPromise(t10), Promise.resolve(this);
- }
- createPopupTemplate(e3) {
- return d4(this, e3);
- }
- async _fetchService(e3) {
- const r3 = (await U(this.parsedUrl.path, { query: { f: "json", token: this.apiKey }, responseType: "json", signal: e3 })).data;
- this.read(r3, { origin: "service", url: this.parsedUrl });
- }
- getField(e3) {
- return this.fieldsIndex.get(e3);
- }
- getFieldDomain(e3, r3) {
- const t10 = this.getFeatureType(r3?.feature)?.domains?.[e3];
- return t10 && t10.type !== "inherited" ? t10 : this.getField(e3)?.domain ?? null;
- }
- getFeatureType(e3) {
- return e3 && r(this.associatedLayer) ? this.associatedLayer.getFeatureType(e3) : null;
- }
- get types() {
- return r(this.associatedLayer) ? this.associatedLayer.types : [];
- }
- get typeIdField() {
- return r(this.associatedLayer) ? this.associatedLayer.typeIdField : null;
- }
- get geometryType() {
- return this.layerType === "3d-object" ? "mesh" : "point";
- }
- get profile() {
- return this.layerType === "3d-object" ? "mesh-pyramids" : "points";
- }
- get capabilities() {
- const e3 = r(this.associatedLayer) && this.associatedLayer.capabilities ? this.associatedLayer.capabilities : t6, { query: r3, data: { supportsZ: t10, supportsM: o2, isVersioned: s6 } } = e3;
- return { query: r3, data: { supportsZ: t10, supportsM: o2, isVersioned: s6 } };
- }
- createQuery() {
- const e3 = new b();
- return this.geometryType !== "mesh" && (e3.returnGeometry = true, e3.returnZ = true), e3.where = this.definitionExpression || "1=1", e3.sqlFormat = "standard", e3;
- }
- queryExtent(e3, r3) {
- return this._getAssociatedLayerForQuery().then((t10) => t10.queryExtent(e3 || this.createQuery(), r3));
- }
- queryFeatureCount(e3, r3) {
- return this._getAssociatedLayerForQuery().then((t10) => t10.queryFeatureCount(e3 || this.createQuery(), r3));
- }
- queryFeatures(e3, r3) {
- return this._getAssociatedLayerForQuery().then((t10) => t10.queryFeatures(e3 || this.createQuery(), r3)).then((e4) => {
- if (e4?.features)
- for (const r4 of e4.features)
- r4.layer = this.layer, r4.sourceLayer = this;
- return e4;
- });
- }
- queryObjectIds(e3, r3) {
- return this._getAssociatedLayerForQuery().then((t10) => t10.queryObjectIds(e3 || this.createQuery(), r3));
- }
- getFieldUsageInfo(e3) {
- return this.fieldsIndex.has(e3) ? { supportsLabelingInfo: false, supportsRenderer: false, supportsPopupTemplate: false, supportsLayerQuery: false } : { supportsLabelingInfo: false, supportsRenderer: true, supportsPopupTemplate: true, supportsLayerQuery: r(this.associatedLayer) };
- }
- _getAssociatedLayerForQuery() {
- const e3 = this.associatedLayer;
- return r(e3) && e3.loaded ? Promise.resolve(e3) : this._loadAssociatedLayerForQuery();
- }
- async _loadAssociatedLayerForQuery() {
- if (await this.load(), t(this.associatedLayer))
- throw new s2("buildingscenelayer:query-not-available", "BuildingSceneLayer component layer queries are not available without an associated feature layer", { layer: this });
- try {
- await this.associatedLayer.load();
- } catch (e3) {
- throw new s2("buildingscenelayer:query-not-available", "BuildingSceneLayer associated feature layer could not be loaded", { layer: this, error: e3 });
- }
- return this.associatedLayer;
- }
- };
- e([d({ readOnly: true })], Q.prototype, "parsedUrl", null), e([d({ type: s5, readOnly: true })], Q.prototype, "nodePages", void 0), e([d({ type: [l3], readOnly: true })], Q.prototype, "materialDefinitions", void 0), e([d({ type: [u], readOnly: true })], Q.prototype, "textureSetDefinitions", void 0), e([d({ type: [m4], readOnly: true })], Q.prototype, "geometryDefinitions", void 0), e([d({ readOnly: true })], Q.prototype, "serviceUpdateTimeStamp", void 0), e([d({ readOnly: true })], Q.prototype, "store", void 0), e([d({ type: String, readOnly: true, json: { read: { source: "store.rootNode" } } })], Q.prototype, "rootNode", void 0), e([d({ readOnly: true })], Q.prototype, "attributeStorageInfo", void 0), e([d(D.fields)], Q.prototype, "fields", void 0), e([d({ readOnly: true })], Q.prototype, "fieldsIndex", null), e([d({ readOnly: true, type: Ke })], Q.prototype, "associatedLayer", void 0), e([o("service", "associatedLayer", ["associatedLayerID"])], Q.prototype, "readAssociatedLayer", null), e([d(D.outFields)], Q.prototype, "outFields", void 0), e([d({ type: String, readOnly: true })], Q.prototype, "objectIdField", null), e([d({ readOnly: true, type: String, json: { read: false } })], Q.prototype, "displayField", null), e([d({ readOnly: true, type: String })], Q.prototype, "apiKey", null), e([d({ readOnly: true, type: M })], Q.prototype, "fullExtent", null), e([d({ readOnly: true, type: k })], Q.prototype, "spatialReference", null), e([d({ readOnly: true })], Q.prototype, "version", null), e([d({ readOnly: true, type: x })], Q.prototype, "elevationInfo", null), e([d({ readOnly: true, type: Number })], Q.prototype, "minScale", null), e([d({ readOnly: true, type: Number })], Q.prototype, "maxScale", null), e([d({ readOnly: true, type: Number })], Q.prototype, "effectiveScaleRange", null), e([d({ type: ["hide", "show"], json: { write: true } })], Q.prototype, "listMode", void 0), e([d({ types: n3, json: { origins: { service: { read: { source: "drawingInfo.renderer" } } }, name: "layerDefinition.drawingInfo.renderer", write: true }, value: null })], Q.prototype, "renderer", void 0), e([d({ type: String, json: { origins: { service: { read: false, write: false } }, name: "layerDefinition.definitionExpression", write: { enabled: true, allowNull: true } } })], Q.prototype, "definitionExpression", void 0), e([d(p2)], Q.prototype, "popupEnabled", void 0), e([d({ type: B, json: { read: { source: "popupInfo" }, write: { target: "popupInfo" } } })], Q.prototype, "popupTemplate", void 0), e([d({ readOnly: true, type: String, json: { origins: { service: { read: { source: "store.normalReferenceFrame" } } }, read: false } })], Q.prototype, "normalReferenceFrame", void 0), e([d({ readOnly: true, json: { read: false } })], Q.prototype, "defaultPopupTemplate", null), e([d()], Q.prototype, "types", null), e([d()], Q.prototype, "typeIdField", null), e([d({ json: { write: false } }), r2(new s3({ "3DObject": "3d-object", Point: "point" }))], Q.prototype, "layerType", void 0), e([d()], Q.prototype, "geometryType", null), e([d()], Q.prototype, "profile", null), e([d({ readOnly: true, json: { read: false } })], Q.prototype, "capabilities", null), Q = e([n("esri.layers.buildingSublayers.BuildingComponentSublayer")], Q);
- var E = Q;
- // node_modules/@arcgis/core/layers/buildingSublayers/BuildingGroupSublayer.js
- var a;
- var p4 = { type: j, readOnly: true, json: { origins: { service: { read: { source: "sublayers", reader: l6 } } }, read: false } };
- function l6(r3, o2, t10) {
- if (r3 && Array.isArray(r3))
- return new j(r3.map((r4) => {
- const e3 = y2(r4);
- if (e3) {
- const o3 = new e3();
- return o3.read(r4, t10), o3;
- }
- t10 && t10.messages && r4 && t10.messages.push(new t2("building-scene-layer:unsupported-sublayer-type", "Building scene sublayer of type '" + (r4.type || "unknown") + "' are not supported", { definition: r4, context: t10 }));
- }));
- }
- var c2 = a = class extends n5 {
- constructor(r3) {
- super(r3), this.type = "building-group", this.listMode = "show", this.sublayers = null;
- }
- loadAll() {
- return i(this, (r3) => a.forEachSublayer(this.sublayers, (e3) => {
- e3.type !== "building-group" && r3(e3);
- }));
- }
- };
- function y2(r3) {
- return r3.layerType === "group" ? c2 : E;
- }
- e([d({ type: ["hide", "show", "hide-children"], json: { write: true } })], c2.prototype, "listMode", void 0), e([d(p4)], c2.prototype, "sublayers", void 0), c2 = a = e([n("esri.layers.buildingSublayers.BuildingGroupSublayer")], c2), function(r3) {
- function e3(r4, o2) {
- r4.forEach((r5) => {
- o2(r5), r5.type === "building-group" && e3(r5.sublayers, o2);
- });
- }
- r3.sublayersProperty = p4, r3.readSublayers = l6, r3.forEachSublayer = e3;
- }(c2 || (c2 = {}));
- var d5 = c2;
- // node_modules/@arcgis/core/layers/support/BuildingFilterAuthoringInfo.js
- var e2 = class extends l {
- constructor() {
- super(...arguments), this.type = null;
- }
- };
- e([d({ type: String, readOnly: true, json: { write: true } })], e2.prototype, "type", void 0), e2 = e([n("esri.layers.support.BuildingFilterAuthoringInfo")], e2);
- var p5 = e2;
- // node_modules/@arcgis/core/layers/support/BuildingFilterAuthoringInfoType.js
- var p6;
- var i3 = p6 = class extends l {
- constructor() {
- super(...arguments), this.filterType = null, this.filterValues = null;
- }
- clone() {
- return new p6({ filterType: this.filterType, filterValues: m(this.filterValues) });
- }
- };
- e([d({ type: String, json: { write: true } })], i3.prototype, "filterType", void 0), e([d({ type: [String], json: { write: true } })], i3.prototype, "filterValues", void 0), i3 = p6 = e([n("esri.layers.support.BuildingFilterAuthoringInfoType")], i3);
- var l7 = i3;
- // node_modules/@arcgis/core/layers/support/BuildingFilterAuthoringInfoBlock.js
- var c3;
- var l8 = j.ofType(l7);
- var n6 = c3 = class extends l {
- clone() {
- return new c3({ filterTypes: m(this.filterTypes) });
- }
- };
- e([d({ type: l8, json: { write: true } })], n6.prototype, "filterTypes", void 0), n6 = c3 = e([n("esri.layers.support.BuildingFilterAuthoringInfoBlock")], n6);
- var m5 = n6;
- // node_modules/@arcgis/core/layers/support/BuildingFilterAuthoringInfoCheckbox.js
- var p7;
- var l9 = j.ofType(m5);
- var n7 = p7 = class extends p5 {
- constructor() {
- super(...arguments), this.type = "checkbox";
- }
- clone() {
- return new p7({ filterBlocks: m(this.filterBlocks) });
- }
- };
- e([d({ type: ["checkbox"] })], n7.prototype, "type", void 0), e([d({ type: l9, json: { write: true } })], n7.prototype, "filterBlocks", void 0), n7 = p7 = e([n("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")], n7);
- var u2 = n7;
- // node_modules/@arcgis/core/layers/support/BuildingFilterMode.js
- var t7 = class extends l {
- };
- e([d({ readOnly: true, json: { read: false } })], t7.prototype, "type", void 0), t7 = e([n("esri.layers.support.BuildingFilterMode")], t7);
- var p8 = t7;
- // node_modules/@arcgis/core/layers/support/BuildingFilterModeSolid.js
- var t8;
- var p9 = t8 = class extends p8 {
- constructor() {
- super(...arguments), this.type = "solid";
- }
- clone() {
- return new t8();
- }
- };
- e([d({ type: ["solid"], readOnly: true, json: { write: true } })], p9.prototype, "type", void 0), p9 = t8 = e([n("esri.layers.support.BuildingFilterModeSolid")], p9);
- var i4 = p9;
- // node_modules/@arcgis/core/layers/support/BuildingFilterModeWireFrame.js
- var c4;
- var m6 = c4 = class extends p8 {
- constructor() {
- super(...arguments), this.type = "wire-frame", this.edges = null;
- }
- clone() {
- return new c4({ edges: m(this.edges) });
- }
- };
- e([r2({ wireFrame: "wire-frame" })], m6.prototype, "type", void 0), e([d(t5)], m6.prototype, "edges", void 0), m6 = c4 = e([n("esri.layers.support.BuildingFilterModeWireFrame")], m6);
- var a2 = m6;
- // node_modules/@arcgis/core/layers/support/BuildingFilterModeXRay.js
- var t9;
- var p10 = t9 = class extends p8 {
- constructor() {
- super(...arguments), this.type = "x-ray";
- }
- clone() {
- return new t9();
- }
- };
- e([d({ type: ["x-ray"], readOnly: true, json: { write: true } })], p10.prototype, "type", void 0), p10 = t9 = e([n("esri.layers.support.BuildingFilterModeXRay")], p10);
- var c5 = p10;
- // node_modules/@arcgis/core/layers/support/BuildingFilterBlock.js
- var d6;
- var a3 = { nonNullable: true, types: { key: "type", base: p8, typeMap: { solid: i4, "wire-frame": a2, "x-ray": c5 } }, json: { read: (e3) => {
- switch (e3 && e3.type) {
- case "solid":
- return i4.fromJSON(e3);
- case "wireFrame":
- return a2.fromJSON(e3);
- case "x-ray":
- return c5.fromJSON(e3);
- default:
- return;
- }
- }, write: { enabled: true, isRequired: true } } };
- var u3 = d6 = class extends l {
- constructor() {
- super(...arguments), this.filterExpression = null, this.filterMode = new i4(), this.title = "";
- }
- clone() {
- return new d6({ filterExpression: this.filterExpression, filterMode: m(this.filterMode), title: this.title });
- }
- };
- e([d({ type: String, json: { write: { enabled: true, isRequired: true } } })], u3.prototype, "filterExpression", void 0), e([d(a3)], u3.prototype, "filterMode", void 0), e([d({ type: String, json: { write: { enabled: true, isRequired: true } } })], u3.prototype, "title", void 0), u3 = d6 = e([n("esri.layers.support.BuildingFilterBlock")], u3);
- var c6 = u3;
- // node_modules/@arcgis/core/layers/support/BuildingFilter.js
- var u4;
- var d7 = j.ofType(c6);
- var m7 = u4 = class extends l {
- constructor() {
- super(...arguments), this.description = null, this.filterBlocks = null, this.id = t3(), this.name = null;
- }
- clone() {
- return new u4({ description: this.description, filterBlocks: m(this.filterBlocks), id: this.id, name: this.name, filterAuthoringInfo: m(this.filterAuthoringInfo) });
- }
- };
- e([d({ type: String, json: { write: true } })], m7.prototype, "description", void 0), e([d({ type: d7, json: { write: { enabled: true, isRequired: true } } })], m7.prototype, "filterBlocks", void 0), e([d({ types: { key: "type", base: p5, typeMap: { checkbox: u2 } }, json: { read: (o2) => (o2 && o2.type) === "checkbox" ? u2.fromJSON(o2) : null, write: true } })], m7.prototype, "filterAuthoringInfo", void 0), e([d({ type: String, constructOnly: true, json: { write: { enabled: true, isRequired: true } } })], m7.prototype, "id", void 0), e([d({ type: String, json: { write: { enabled: true, isRequired: true } } })], m7.prototype, "name", void 0), m7 = u4 = e([n("esri.layers.support.BuildingFilter")], m7);
- var f = m7;
- // node_modules/@arcgis/core/layers/support/BuildingSummaryStatistics.js
- var u5 = s.getLogger("esri.layers.support.BuildingSummaryStatistics");
- var n8 = class extends l {
- constructor() {
- super(...arguments), this.fieldName = null, this.modelName = null, this.label = null, this.min = null, this.max = null, this.mostFrequentValues = null, this.subLayerIds = null;
- }
- };
- e([d({ type: String })], n8.prototype, "fieldName", void 0), e([d({ type: String })], n8.prototype, "modelName", void 0), e([d({ type: String })], n8.prototype, "label", void 0), e([d({ type: Number })], n8.prototype, "min", void 0), e([d({ type: Number })], n8.prototype, "max", void 0), e([d({ json: { read: (e3) => Array.isArray(e3) && (e3.every((e4) => typeof e4 == "string") || e3.every((e4) => typeof e4 == "number")) ? e3.slice() : null } })], n8.prototype, "mostFrequentValues", void 0), e([d({ type: [Number] })], n8.prototype, "subLayerIds", void 0), n8 = e([n("esri.layers.support.BuildingFieldStatistics")], n8);
- var m8 = class extends m3.LoadableMixin(m2(l)) {
- constructor() {
- super(...arguments), this.url = null;
- }
- get fields() {
- return this.loaded || this.loadStatus === "loading" ? this._get("fields") : (u5.error("building summary statistics are not loaded"), null);
- }
- load(e3) {
- const r3 = r(e3) ? e3.signal : null;
- return this.addResolvingPromise(this._fetchService(r3)), Promise.resolve(this);
- }
- async _fetchService(e3) {
- const t10 = (await U(this.url, { query: { f: "json" }, responseType: "json", signal: e3 })).data;
- this.read(t10, { origin: "service" });
- }
- };
- e([d({ constructOnly: true, type: String })], m8.prototype, "url", void 0), e([d({ readOnly: true, type: [n8], json: { read: { source: "summary" } } })], m8.prototype, "fields", null), m8 = e([n("esri.layers.support.BuildingSummaryStatistics")], m8);
- var c7 = m8;
- // node_modules/@arcgis/core/layers/BuildingSceneLayer.js
- var B2 = s.getLogger("esri.layers.BuildingSceneLayer");
- var _ = j.ofType(f);
- var P2 = m(d5.sublayersProperty);
- P2.json.origins["web-scene"] = { type: [E], write: { enabled: true, overridePolicy: () => ({ enabled: false }) } }, P2.json.origins["portal-item"] = { type: [E], write: { enabled: true, overridePolicy: () => ({ enabled: false }) } };
- var K2 = class extends A(p3(c(v(t4(O(i2(b2))))))) {
- constructor(e3) {
- super(e3), this.operationalLayerType = "BuildingSceneLayer", this.allSublayers = new p({ getCollections: () => [this.sublayers], getChildrenFunction: (e4) => e4.type === "building-group" ? e4.sublayers : null }), this.sublayers = null, this.sublayerOverrides = null, this.filters = new _(), this.activeFilterId = null, this.summaryStatistics = null, this.outFields = null, this.type = "building-scene";
- }
- normalizeCtorArgs(e3) {
- return typeof e3 == "string" ? { url: e3 } : e3;
- }
- destroy() {
- this.allSublayers.destroy();
- }
- readSublayers(e3, r3, t10) {
- const s6 = d5.readSublayers(e3, r3, t10);
- return d5.forEachSublayer(s6, (e4) => e4.layer = this), this.sublayerOverrides && (this.applySublayerOverrides(s6, this.sublayerOverrides), this.sublayerOverrides = null), s6;
- }
- applySublayerOverrides(e3, { overrides: r3, context: t10 }) {
- d5.forEachSublayer(e3, (e4) => e4.read(r3.get(e4.id), t10));
- }
- readSublayerOverrides(e3, r3) {
- const t10 = new Map();
- for (const i5 of e3)
- i5 != null && typeof i5 == "object" && typeof i5.id == "number" ? t10.set(i5.id, i5) : r3.messages.push(new s2("building-scene-layer:invalid-sublayer-override", "Invalid value for sublayer override. Not an object or no id specified.", { value: i5 }));
- return { overrides: t10, context: r3 };
- }
- writeSublayerOverrides(e3, r3, t10) {
- const s6 = [];
- d5.forEachSublayer(this.sublayers, (e4) => {
- const r4 = e4.write({}, t10);
- Object.keys(r4).length > 1 && s6.push(r4);
- }), s6.length > 0 && (r3.sublayers = s6);
- }
- writeUnappliedOverrides(e3, r3) {
- r3.sublayers = [], e3.overrides.forEach((e4) => {
- r3.sublayers.push(m(e4));
- });
- }
- write(e3, r3) {
- return e3 = super.write(e3, r3), !r3 || r3.origin !== "web-scene" && r3.origin !== "portal-item" || (this.sublayers ? this.writeSublayerOverrides(this.sublayers, e3, r3) : this.sublayerOverrides && this.writeUnappliedOverrides(this.sublayerOverrides, e3)), e3;
- }
- read(e3, r3) {
- if (super.read(e3, r3), r3 && (r3.origin === "web-scene" || r3.origin === "portal-item") && e3 != null && Array.isArray(e3.sublayers)) {
- const t10 = this.readSublayerOverrides(e3.sublayers, r3);
- this.sublayers ? this.applySublayerOverrides(this.sublayers, t10) : this.sublayerOverrides = t10;
- }
- }
- readSummaryStatistics(e3, r3) {
- if (typeof r3.statisticsHRef == "string") {
- const e4 = G(this.parsedUrl.path, r3.statisticsHRef);
- return new c7({ url: e4 });
- }
- return null;
- }
- set elevationInfo(e3) {
- this._set("elevationInfo", e3), this._validateElevationInfo();
- }
- load(e3) {
- const r3 = r(e3) ? e3.signal : null, t10 = this.loadFromPortal({ supportedTypes: ["Scene Service"] }, e3).catch(w).then(() => this._fetchService(r3)).then(() => this._fetchAssociatedFeatureService(r3));
- return this.addResolvingPromise(t10), Promise.resolve(this);
- }
- loadAll() {
- return n2(this, (e3) => {
- d5.forEachSublayer(this.sublayers, (r3) => {
- r3.type !== "building-group" && e3(r3);
- }), this.summaryStatistics && e3(this.summaryStatistics);
- });
- }
- async saveAs(e3, r3) {
- return this._debouncedSaveOperations(K.SAVE_AS, { ...r3, getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "building-scene" }, e3);
- }
- async save() {
- const e3 = { getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "building-scene" };
- return this._debouncedSaveOperations(K.SAVE, e3);
- }
- validateLayer(e3) {
- if (!e3.layerType || e3.layerType !== "Building")
- throw new s2("buildingscenelayer:layer-type-not-supported", "BuildingSceneLayer does not support this layer type", { layerType: e3.layerType });
- }
- _getTypeKeywords() {
- return ["Building"];
- }
- _validateElevationInfo() {
- const e3 = this.elevationInfo;
- e3 && (e3.mode !== "absolute-height" && B2.warn(".elevationInfo=", "Building scene layers only support absolute-height elevation mode"), e3.featureExpressionInfo && e3.featureExpressionInfo.expression !== "0" && B2.warn(".elevationInfo=", "Building scene layers do not support featureExpressionInfo"));
- }
- async _fetchAssociatedFeatureService(e3) {
- const r3 = new l4(this.parsedUrl, this.portalItem, this.apiKey, e3);
- try {
- this.associatedFeatureServiceItem = await r3.fetchPortalItem();
- } catch (t10) {
- B2.warn("Associated feature service item could not be loaded", t10);
- }
- }
- };
- e([d({ type: ["BuildingSceneLayer"] })], K2.prototype, "operationalLayerType", void 0), e([d({ readOnly: true })], K2.prototype, "allSublayers", void 0), e([d(P2)], K2.prototype, "sublayers", void 0), e([o("service", "sublayers")], K2.prototype, "readSublayers", null), e([d({ type: _, nonNullable: true, json: { write: true } })], K2.prototype, "filters", void 0), e([d({ type: String, json: { write: true } })], K2.prototype, "activeFilterId", void 0), e([d({ readOnly: true, type: c7 })], K2.prototype, "summaryStatistics", void 0), e([o("summaryStatistics", ["statisticsHRef"])], K2.prototype, "readSummaryStatistics", null), e([d({ type: [String], json: { read: false } })], K2.prototype, "outFields", void 0), e([d(j2)], K2.prototype, "fullExtent", void 0), e([d({ type: ["show", "hide", "hide-children"] })], K2.prototype, "listMode", void 0), e([d(y(k))], K2.prototype, "spatialReference", void 0), e([d(d3)], K2.prototype, "elevationInfo", null), e([d({ json: { read: false }, readOnly: true })], K2.prototype, "type", void 0), e([d()], K2.prototype, "associatedFeatureServiceItem", void 0), K2 = e([n("esri.layers.BuildingSceneLayer")], K2);
- var R = K2;
- export {
- R as default
- };
- //# sourceMappingURL=BuildingSceneLayer-35UYR6TW.js.map
|