123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- import {
- d as d4,
- y as y3
- } from "./chunk-XNVWGZWL.js";
- import {
- n as n2
- } from "./chunk-2L6YYKXA.js";
- import {
- oe
- } from "./chunk-DTSCAH2R.js";
- import "./chunk-B5WNDDCF.js";
- import "./chunk-DXEPL3XQ.js";
- import "./chunk-E5TKVDJT.js";
- import "./chunk-XYIYXU3I.js";
- import "./chunk-T6DJ6UAT.js";
- import "./chunk-WOGDHLUJ.js";
- import {
- v
- } from "./chunk-NAWSWIYX.js";
- import {
- a
- } from "./chunk-BFF4N4R7.js";
- import {
- i as i3
- } from "./chunk-O6KMIRUU.js";
- import {
- d as d3,
- o
- } from "./chunk-264YGWEE.js";
- import {
- i as i4
- } from "./chunk-YG7DNOY4.js";
- import {
- u,
- y as y2
- } from "./chunk-KUAEOLV3.js";
- import {
- i as i2
- } from "./chunk-ZLQP3WDC.js";
- import "./chunk-JBMHQ5RK.js";
- import "./chunk-WBWQJQK4.js";
- import {
- s as s3
- } from "./chunk-TE2TRGVU.js";
- import "./chunk-A22ACVMF.js";
- import {
- J
- } from "./chunk-I623MZCZ.js";
- import {
- d as d2,
- x as x3
- } from "./chunk-TLDCDW5L.js";
- import {
- A
- } from "./chunk-TDS6IBMU.js";
- import "./chunk-DBT4KOKX.js";
- import "./chunk-2GP5D74I.js";
- import "./chunk-ZELEU5PN.js";
- import "./chunk-O7E4VYJT.js";
- import "./chunk-AIG57VB7.js";
- import "./chunk-PHAKVYRM.js";
- import "./chunk-IDINBHDV.js";
- import "./chunk-6LE4RPMZ.js";
- import "./chunk-67RFR4NT.js";
- import "./chunk-WPDBODJM.js";
- import "./chunk-5IVP3KUS.js";
- import "./chunk-JXYBFGFY.js";
- import "./chunk-EPMXCACW.js";
- import "./chunk-UCPKJYXN.js";
- import "./chunk-KFLNKWNF.js";
- import "./chunk-R24MO4IV.js";
- import "./chunk-YQBYWPBD.js";
- import "./chunk-UWKVAZQ6.js";
- import "./chunk-XBFCIW4K.js";
- import "./chunk-T2SKWJGU.js";
- import "./chunk-UO3LS2M5.js";
- import "./chunk-H2VOWDMO.js";
- import "./chunk-QISOH77W.js";
- import "./chunk-4HL6BBWO.js";
- import "./chunk-KUO7OCMN.js";
- import "./chunk-XO5VJRK4.js";
- import "./chunk-ST53DRNI.js";
- import "./chunk-3WXSWAUV.js";
- import "./chunk-27YO3FKC.js";
- import {
- I
- } from "./chunk-EQNT4A7P.js";
- import "./chunk-4OM3EX6P.js";
- import "./chunk-3OFVLRSL.js";
- import "./chunk-DMVKVC5I.js";
- import "./chunk-VEJPYAE4.js";
- import "./chunk-UMUHMVL4.js";
- import "./chunk-FZSI6IGI.js";
- import "./chunk-YFDOPEEZ.js";
- import {
- i
- } from "./chunk-BVA3U6FJ.js";
- import "./chunk-IQBIGNPU.js";
- import "./chunk-K7B6OWCU.js";
- import "./chunk-LXOC7SMQ.js";
- import "./chunk-QU433TMZ.js";
- import "./chunk-L5DZVCCW.js";
- import "./chunk-WNPL3C7R.js";
- import "./chunk-E7ZLMIQ7.js";
- import "./chunk-JEA4MMTV.js";
- import "./chunk-RG3AHHRL.js";
- import "./chunk-XHRNCFJT.js";
- import "./chunk-UDYHZLTE.js";
- import "./chunk-QC7NCR5N.js";
- import "./chunk-VQXMCZYH.js";
- import "./chunk-JQUWFKNU.js";
- import "./chunk-RWQH5X3O.js";
- import "./chunk-6334AFGG.js";
- import "./chunk-CC74Y7ET.js";
- import "./chunk-TFHLTN6F.js";
- import "./chunk-O3JQY77G.js";
- import "./chunk-E3G7BRZB.js";
- import "./chunk-JKFWEHNK.js";
- import "./chunk-IIAN3QNN.js";
- import "./chunk-P24XEEHY.js";
- import "./chunk-WOXHUQGM.js";
- import "./chunk-FMPQIGFA.js";
- import "./chunk-EDHROVWI.js";
- import "./chunk-3IRT3YKJ.js";
- import "./chunk-SAJAEMIJ.js";
- import "./chunk-TU7WVKU4.js";
- import "./chunk-JAUFBT5U.js";
- import "./chunk-ZOO4I2U4.js";
- import "./chunk-HZ2WKB3G.js";
- import "./chunk-3HCJD762.js";
- import "./chunk-RVCE264D.js";
- import "./chunk-HKJ7X3BD.js";
- import "./chunk-Y74D3LKQ.js";
- import "./chunk-PK4W65H4.js";
- import {
- g
- } from "./chunk-7C23ILQ4.js";
- import "./chunk-P6VVVEX6.js";
- import "./chunk-3Z755LKF.js";
- import "./chunk-LTZ5XXDV.js";
- import "./chunk-IEU3AM37.js";
- import "./chunk-DLMAGHHC.js";
- import {
- x as x2
- } from "./chunk-WD4J43GZ.js";
- import "./chunk-JOYXMSKE.js";
- import {
- d
- } from "./chunk-YZVAB3DF.js";
- import "./chunk-JLYTER4T.js";
- import "./chunk-CRHRHOXH.js";
- import "./chunk-ZSW35JPD.js";
- import "./chunk-JLSNMUQJ.js";
- import "./chunk-ECY35CJI.js";
- import "./chunk-PT62335L.js";
- import "./chunk-JGBXYDGB.js";
- import "./chunk-QEWF7QPH.js";
- import "./chunk-PJNBFKPF.js";
- import "./chunk-C7742RNZ.js";
- import "./chunk-FNA5GLRW.js";
- import "./chunk-MCWCB5IY.js";
- import "./chunk-TV3CFJQR.js";
- import {
- U,
- l,
- w
- } from "./chunk-TJV6ODRM.js";
- import "./chunk-YLEVJ6UV.js";
- import "./chunk-U2WD23Z5.js";
- import {
- g as g2
- } from "./chunk-GLSWDDR3.js";
- import "./chunk-DUEMJ5XS.js";
- import "./chunk-VRLXUHP2.js";
- import "./chunk-3LVSQLWJ.js";
- import "./chunk-4ONPMX2F.js";
- import "./chunk-CRGY2SDS.js";
- import "./chunk-4T5ZGMEN.js";
- import "./chunk-3WQOA5CB.js";
- import "./chunk-FZQZIM7U.js";
- import "./chunk-CZBRZ6SU.js";
- import "./chunk-VGWC3IKZ.js";
- import "./chunk-2H5MD622.js";
- import "./chunk-3RSFVUKZ.js";
- import "./chunk-UVVU4UUO.js";
- import "./chunk-O6VYMEIX.js";
- import "./chunk-X4SA4ELJ.js";
- import "./chunk-5N7JLUJJ.js";
- import "./chunk-ZAY3CMAZ.js";
- import "./chunk-P3XKUGLS.js";
- import "./chunk-LU5IJZB4.js";
- import "./chunk-7IBV2TRE.js";
- import "./chunk-ZLNEXZAN.js";
- import "./chunk-5UVJ64RB.js";
- import "./chunk-SFEFRQCL.js";
- import "./chunk-3GZSQU56.js";
- import "./chunk-ZYRIJWLX.js";
- import "./chunk-RYY6632W.js";
- import "./chunk-DW42UVIT.js";
- import "./chunk-YAEIHDJH.js";
- import "./chunk-TJNOJH33.js";
- import "./chunk-OSHI574D.js";
- import "./chunk-ETGAZ7LF.js";
- import "./chunk-75U5LM2V.js";
- import "./chunk-RMDDCMKS.js";
- import "./chunk-VCH45Q2I.js";
- import {
- j as j2
- } from "./chunk-LBW34VZ2.js";
- import "./chunk-GSSTTHIT.js";
- import "./chunk-YFSLJIO4.js";
- import "./chunk-IM3LVQXV.js";
- import "./chunk-55RWC67C.js";
- import "./chunk-HZRKBTHJ.js";
- import {
- U as U2
- } from "./chunk-DVUG3KID.js";
- import "./chunk-FWSQEIAR.js";
- import "./chunk-VEGAOVMY.js";
- import {
- w as w2,
- w2 as w3
- } from "./chunk-6T6G6LCQ.js";
- import "./chunk-YEJL5NEF.js";
- import "./chunk-PQFTYGF5.js";
- import {
- e,
- m,
- n5 as n,
- y3 as y
- } from "./chunk-2Z2TG5CU.js";
- import "./chunk-6KZ2LTDA.js";
- import "./chunk-U2XHEJM7.js";
- import "./chunk-SQOPWYIT.js";
- import {
- j,
- x
- } from "./chunk-V6P2MAQQ.js";
- import {
- s2 as s,
- s3 as s2
- } from "./chunk-E5O6P5I2.js";
- import "./chunk-SPWQ3AWG.js";
- import "./chunk-2TIUKVZN.js";
- import {
- e as e2,
- r,
- t
- } from "./chunk-YXWMMD76.js";
- import "./chunk-S5KM4IGW.js";
- // node_modules/@arcgis/core/views/2d/layers/imagery/ImageryView2D.js
- var d5 = class extends m {
- constructor() {
- super(...arguments), this.attached = false, this.container = new i2(), this.updateRequested = false, this.type = "imagery", this._bitmapView = new a();
- }
- destroy() {
- this.attached && (this.detach(), this.attached = false), this.updateRequested = false;
- }
- get updating() {
- return !this.attached || this.isUpdating();
- }
- update(e3) {
- this.strategy.update(e3).catch((e4) => {
- j(e4) || s.getLogger(this.declaredClass).error(e4);
- });
- }
- hitTest(e3) {
- return new g({ attributes: {}, geometry: e3.clone(), layer: this.layer });
- }
- attach() {
- this.container.addChild(this._bitmapView);
- const e3 = this.layer.version >= 10, t3 = this.layer.version >= 10.1 ? this.layer.imageMaxHeight : 2048, r2 = this.layer.version >= 10.1 ? this.layer.imageMaxWidth : 2048;
- this.strategy = new v({ container: this._bitmapView, imageNormalizationSupported: e3, imageMaxHeight: t3, imageMaxWidth: r2, fetchSource: this._fetchImage.bind(this), requestUpdate: () => this.requestUpdate() });
- }
- detach() {
- this.strategy.destroy(), this._bitmapView.removeAllChildren(), this.container.removeAllChildren(), this.updateRequested = false;
- }
- redraw() {
- this.strategy.updateExports(async (e3) => {
- var _a;
- if (e3.source instanceof HTMLImageElement)
- return;
- const t3 = await this.layer.applyRenderer({ extent: e3.source.extent, pixelBlock: (_a = e3.source.originalPixelBlock) != null ? _a : e3.source.pixelBlock }), r2 = e3.source;
- r2.filter = (e4) => this.layer.pixelFilter ? this.layer.applyFilter(e4) : { ...t3, extent: r2.extent };
- }).catch((e3) => {
- j(e3) || s.getLogger(this.declaredClass).error(e3);
- });
- }
- requestUpdate() {
- this.updateRequested || (this.updateRequested = true, this.view.requestUpdate());
- }
- isUpdating() {
- return this.strategy.updating || this.updateRequested;
- }
- getPixelData() {
- if (this.updating)
- return null;
- const e3 = this.strategy.bitmaps;
- if (1 === e3.length && e3[0].source)
- return { extent: e3[0].source.extent, pixelBlock: e3[0].source.originalPixelBlock };
- if (e3.length > 1) {
- const t3 = this.view.extent, r2 = e3.map((e4) => e4.source).filter((e4) => e4.extent && e4.extent.intersects(t3)).map((e4) => ({ extent: e4.extent, pixelBlock: e4.originalPixelBlock })), i5 = A(r2, t3);
- return r(i5) ? { extent: i5.extent, pixelBlock: i5.pixelBlock } : null;
- }
- return null;
- }
- _fetchImage(e3, t3, r2, i5) {
- return (i5 = i5 || {}).timeExtent = this.timeExtent, i5.requestAsImageElement = true, this.layer.fetchImage(e3, t3, r2, i5).then((e4) => e4.imageOrCanvasElement ? e4.imageOrCanvasElement : this.layer.applyRenderer(e4.pixelData, { signal: i5.signal }).then((t4) => {
- const r3 = new i3(t4.pixelBlock, t4.extent.clone(), e4.pixelData.pixelBlock);
- return r3.filter = (e5) => this.layer.applyFilter(e5), r3;
- }));
- }
- };
- e([y()], d5.prototype, "attached", void 0), e([y()], d5.prototype, "container", void 0), e([y()], d5.prototype, "layer", void 0), e([y()], d5.prototype, "strategy", void 0), e([y()], d5.prototype, "timeExtent", void 0), e([y()], d5.prototype, "view", void 0), e([y()], d5.prototype, "updateRequested", void 0), e([y()], d5.prototype, "updating", null), e([y()], d5.prototype, "type", void 0), d5 = e([n("esri.views.2d.layers.imagery.ImageryView2D")], d5);
- var u2 = d5;
- // node_modules/@arcgis/core/views/2d/engine/imagery/RasterVFContainer.js
- var t2 = class extends o {
- constructor() {
- super(...arguments), this.symbolTypes = ["triangle"];
- }
- get requiresDedicatedFBO() {
- return false;
- }
- prepareRenderPasses(s4) {
- const t3 = s4.registerRenderPass({ name: "imagery (vf)", brushes: [d3], target: () => this.children, drawPhase: I.MAP });
- return [...super.prepareRenderPasses(s4), t3];
- }
- doRender(e3) {
- this.visible && e3.drawPhase === I.MAP && this.symbolTypes.forEach((r2) => {
- e3.renderPass = r2, super.doRender(e3);
- });
- }
- };
- // node_modules/@arcgis/core/views/2d/layers/imagery/ImageryVFStrategy.js
- var p = class extends m {
- constructor(e3) {
- super(e3), this.update = x((e4, t3) => this._update(e4, t3).catch((e5) => {
- j(e5) || s.getLogger(this.declaredClass).error(e5);
- }));
- }
- get updating() {
- return !!this._loading;
- }
- redraw(e3) {
- if (!this.container.children.length)
- return;
- const t3 = this.container.children[0];
- t3.symbolizerParameters = e3, t3.invalidateVAO(), this.container.symbolTypes = "wind_speed" === e3.style ? ["scalar", "triangle"] : "simple_scalar" === e3.style ? ["scalar"] : ["triangle"], this.container.requestRender();
- }
- async _update(e3, t3, r2) {
- if (!e3.stationary)
- return;
- const { extent: i5, spatialReference: s4 } = e3.state, o2 = new w3({ xmin: i5.xmin, ymin: i5.ymin, xmax: i5.xmax, ymax: i5.ymax, spatialReference: s4 }), [a2, n3] = e3.state.size;
- this._loading = this.fetchPixels(o2, a2, n3, r2);
- const c = await this._loading;
- this._addToDisplay(c, t3, e3.state), this._loading = null;
- }
- _addToDisplay(e3, t3, r2) {
- if (t(e3.pixelBlock))
- return this.container.children.forEach((e4) => e4.destroy()), void this.container.removeAllChildren();
- const { extent: s4, pixelBlock: o2 } = e3, a2 = new y3(o2);
- a2.offset = [0, 0], a2.symbolizerParameters = t3, a2.rawPixelData = e3, a2.invalidateVAO(), a2.x = s4.xmin, a2.y = s4.ymax, a2.pixelRatio = r2.pixelRatio, a2.rotation = r2.rotation, a2.resolution = r2.resolution, a2.width = o2.width * t3.symbolTileSize, a2.height = o2.height * t3.symbolTileSize, this.container.children.forEach((e4) => e4.destroy()), this.container.removeAllChildren(), this.container.symbolTypes = "wind_speed" === t3.style ? ["scalar", "triangle"] : "simple_scalar" === t3.style ? ["scalar"] : ["triangle"], this.container.addChild(a2);
- }
- };
- e([y()], p.prototype, "fetchPixels", void 0), e([y()], p.prototype, "container", void 0), e([y()], p.prototype, "_loading", void 0), e([y()], p.prototype, "updating", null), p = e([n("esri.views.2d.layers.imagery.ImageryVFStrategy")], p);
- var m2 = p;
- // node_modules/@arcgis/core/views/2d/layers/imagery/VectorFieldView2D.js
- var f = class extends d {
- constructor() {
- super(...arguments), this.attached = false, this.container = new t2(), this.type = "imageryVF", this._dataParameters = { exportParametersVersion: 0, bbox: "", symbolTileSize: 0, time: "" }, this._fetchpixels = async (e3, t3, r2, i5) => {
- const n3 = await this._projectFullExtentPromise, { symbolTileSize: l2 } = this.layer.renderer, { extent: c, width: m4, height: p2 } = x3(e3, t3, r2, l2, n3);
- if (r(n3) && !n3.intersects(e3))
- return { extent: c, pixelBlock: null };
- const h = { bbox: `${c.xmin}, ${c.ymin}, ${c.xmax}, ${c.ymax}`, exportParametersVersion: this.layer.exportImageServiceParameters.version, symbolTileSize: l2, time: JSON.stringify(this.timeExtent || "") };
- if (this._canReuseVectorFieldData(h)) {
- const e4 = this.getPixelData();
- if (r(e4)) {
- if (`${e4.extent.xmin}, ${e4.extent.ymin}, ${e4.extent.xmax}, ${e4.extent.ymax}` === h.bbox)
- return e4;
- }
- }
- const { pixelData: u3 } = await this.layer.fetchImage(c, m4, p2, { timeExtent: this.timeExtent, requestAsImageElement: false, signal: i5 });
- if (this._dataParameters = h, t(u3.pixelBlock))
- return { extent: c, pixelBlock: null };
- return { extent: c, pixelBlock: "vector-uv" === this.layer.rasterInfo.dataType ? e2(d2(u3.pixelBlock, "vector-uv")) : u3.pixelBlock };
- };
- }
- get updating() {
- return !this.attached || this._strategy.updating;
- }
- attach() {
- this._projectFullExtentPromise = this._getProjectedFullExtent(this.view.spatialReference), this._strategy = new m2({ container: this.container, fetchPixels: this._fetchpixels }), this.handles.add(l(() => this.layer.renderer, (e3) => this._updateSymbolizerParams(e3), w), "vector-field-view-update");
- }
- detach() {
- this._strategy.destroy(), this.container.children.forEach((e3) => e3.destroy()), this.container.removeAllChildren(), this.handles.remove("vector-field-view-update"), this._strategy = this.container = this._projectFullExtentPromise = null;
- }
- getPixelData() {
- if (this.updating || !this.container.children.length)
- return null;
- const { extent: e3, pixelBlock: t3 } = this.container.children[0].rawPixelData;
- return { extent: e3, pixelBlock: t3 };
- }
- hitTest(e3) {
- return new g({ attributes: {}, geometry: e3.clone(), layer: this.layer });
- }
- update(e3) {
- this._strategy.update(e3, this._symbolizerParams);
- }
- redraw() {
- this._updateSymbolizerParams(this.layer.renderer), this._strategy.redraw(this._symbolizerParams);
- }
- _canReuseVectorFieldData(e3) {
- const t3 = this._dataParameters.exportParametersVersion === e3.exportParametersVersion, r2 = this._dataParameters.time === e3.time, i5 = this._dataParameters.symbolTileSize === e3.symbolTileSize, s4 = this._dataParameters.bbox === e3.bbox;
- return t3 && r2 && i5 && s4;
- }
- async _getProjectedFullExtent(e3) {
- try {
- return await J(this.layer.fullExtent, e3);
- } catch (t3) {
- try {
- const t4 = (await U2(this.layer.url, { query: { option: "footprints", outSR: e3.wkid || JSON.stringify(e3.toJSON()), f: "json" } })).data.featureCollection.layers[0].layerDefinition.extent;
- return t4 ? w3.fromJSON(t4) : null;
- } catch {
- return null;
- }
- }
- }
- _updateSymbolizerParams(e3) {
- "vector-field" === e3.type && (this._symbolizerParams = this.layer.symbolizer.generateWebGLParameters({ pixelBlock: null }));
- }
- };
- e([y()], f.prototype, "attached", void 0), e([y()], f.prototype, "container", void 0), e([y()], f.prototype, "layer", void 0), e([y()], f.prototype, "timeExtent", void 0), e([y()], f.prototype, "type", void 0), e([y()], f.prototype, "view", void 0), e([y()], f.prototype, "updating", null), f = e([n("esri.views.2d.layers.imagery.VectorFieldView2D")], f);
- var g3 = f;
- // node_modules/@arcgis/core/views/layers/ImageryLayerView.js
- var m3 = (m4) => {
- let c = class extends m4 {
- constructor() {
- super(...arguments), this.view = null;
- }
- async fetchPopupFeatures(e3, s4) {
- const { layer: p2 } = this;
- if (!e3)
- throw new s2("imagerylayerview:fetchPopupFeatures", "Nothing to fetch without area", { layer: p2 });
- const { popupEnabled: a2 } = p2, m5 = s3(p2, s4);
- if (!a2 || t(m5))
- throw new s2("imagerylayerview:fetchPopupFeatures", "Missing required popupTemplate or popupEnabled", { popupEnabled: a2, popupTemplate: m5 });
- const c2 = await m5.getRequiredFields(), l2 = new x2();
- l2.timeExtent = this.timeExtent, l2.geometry = e3, l2.outFields = c2, l2.outSpatialReference = e3.spatialReference;
- const y4 = this.view.resolution, w4 = "2d" === this.view.type ? new w2(y4, y4, this.view.spatialReference) : new w2(0.5 * y4, 0.5 * y4, this.view.spatialReference), { returnTopmostRaster: d6, showNoDataRecords: h } = m5.layerOptions || { returnTopmostRaster: true, showNoDataRecords: false }, f2 = { returnDomainValues: true, returnTopmostRaster: d6, pixelSize: w4, showNoDataRecords: h, signal: r(s4) ? s4.signal : null };
- return p2.queryVisibleRasters(l2, f2).then((e4) => e4);
- }
- canResume() {
- var _a;
- return !!super.canResume() && !((_a = this.timeExtent) == null ? void 0 : _a.isEmpty);
- }
- };
- return e([y()], c.prototype, "layer", void 0), e([y()], c.prototype, "suspended", void 0), e([y(g2)], c.prototype, "timeExtent", void 0), e([y()], c.prototype, "view", void 0), c = e([n("esri.views.layers.ImageryLayerView")], c), c;
- };
- // node_modules/@arcgis/core/views/2d/layers/ImageryLayerView2D.js
- var g4 = class extends m3(i4(y2(u))) {
- constructor() {
- super(...arguments), this._exportImageVersion = -1, this._highlightGraphics = new i(), this.subview = null;
- }
- get pixelData() {
- return this.updating ? null : "getPixelData" in this.subview ? this.subview.getPixelData() : null;
- }
- async hitTest(e3, i5) {
- return this.subview ? [{ type: "graphic", graphic: this.subview.hitTest(e3), layer: this.layer, mapPoint: e3 }] : null;
- }
- update(e3) {
- var _a;
- (_a = this.subview) == null ? void 0 : _a.update(e3);
- }
- attach() {
- this.layer.increaseRasterJobHandlerUsage(), this._setSubView(), this.view && (this._highlightView = new oe({ view: this.view, graphics: this._highlightGraphics, requestUpdateCallback: () => this.requestUpdate(), container: new n2(this.view.featuresTilingScheme) }), this.container.addChild(this._highlightView.container)), this.handles.add([l(() => {
- var _a;
- return (_a = this.layer.blendMode) != null ? _a : "normal";
- }, (e3) => this.subview.container.blendMode = e3, w), l(() => {
- var _a;
- return (_a = this.layer.effect) != null ? _a : null;
- }, (e3) => this.subview.container.effect = e3, w), l(() => this.layer.exportImageServiceParameters.version, (e3) => {
- e3 && this._exportImageVersion !== e3 && (this._exportImageVersion = e3, this.requestUpdate());
- }, U), l(() => this.timeExtent, (e3) => {
- this.subview.timeExtent = e3, "redraw" in this.subview ? this.requestUpdate() : this.subview.redrawOrRefetch();
- }, U), this.layer.on("redraw", () => {
- "redraw" in this.subview ? this.subview.redraw() : this.subview.redrawOrRefetch();
- }), l(() => this.layer.renderer, () => this._setSubView())], "imagerylayerview-update");
- }
- detach() {
- var _a, _b;
- this.layer.decreaseRasterJobHandlerUsage(), this.container.removeAllChildren(), this._detachSubview(this.subview), (_a = this.subview) == null ? void 0 : _a.destroy(), this.handles.remove("imagerylayerview-update"), this.subview = null, (_b = this._highlightView) == null ? void 0 : _b.destroy(), this._exportImageVersion = -1;
- }
- moveStart() {
- }
- viewChange() {
- }
- moveEnd() {
- this.requestUpdate();
- }
- highlight(e3, r2) {
- if (!((Array.isArray(e3) ? e3[0] : j2.isCollection(e3) ? e3.getItemAt(0) : e3) instanceof g))
- return { remove: () => {
- } };
- let s4 = [];
- return Array.isArray(e3) || j2.isCollection(e3) ? s4 = e3.map((e4) => e4.clone()) : e3 instanceof g && (s4 = [e3.clone()]), this._highlightGraphics.addMany(s4), { remove: () => {
- this._highlightGraphics.removeMany(s4);
- } };
- }
- async doRefresh() {
- this.requestUpdate();
- }
- isUpdating() {
- return !this.subview || this.subview.updating;
- }
- _setSubView() {
- var _a, _b;
- if (!this.view)
- return;
- const e3 = (_a = this.layer.renderer) == null ? void 0 : _a.type;
- let i5 = "imagery";
- if ("vector-field" === e3 ? i5 = "imageryVF" : "flow" === e3 && (i5 = "flow"), this.subview) {
- const { type: e4 } = this.subview;
- if (e4 === i5)
- return this._attachSubview(this.subview), void ("flow" === e4 ? this.subview.redrawOrRefetch() : "imagery" === e4 && "lerc" === this.layer.format ? this.subview.redraw() : this.requestUpdate());
- this._detachSubview(this.subview), (_b = this.subview) == null ? void 0 : _b.destroy();
- }
- this.subview = "imagery" === i5 ? new u2({ layer: this.layer, view: this.view, timeExtent: this.timeExtent }) : "imageryVF" === i5 ? new g3({ layer: this.layer, view: this.view, timeExtent: this.timeExtent }) : new d4({ layer: this.layer, layerView: this }), this._attachSubview(this.subview), this.requestUpdate();
- }
- _attachSubview(e3) {
- e3 && !e3.attached && (e3.attach(), e3.attached = true, this.container.addChildAt(e3.container, 0), e3.container.blendMode = this.layer.blendMode, e3.container.effect = this.layer.effect);
- }
- _detachSubview(e3) {
- (e3 == null ? void 0 : e3.attached) && (this.container.removeChild(e3.container), e3.detach(), e3.attached = false);
- }
- };
- e([y()], g4.prototype, "pixelData", null), e([y()], g4.prototype, "subview", void 0), g4 = e([n("esri.views.2d.layers.ImageryLayerView2D")], g4);
- var b = g4;
- export {
- b as default
- };
- //# sourceMappingURL=ImageryLayerView2D-F5AMDXNA.js.map
|