123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527 |
- import {
- d as d3,
- y as y2
- } from "./chunk-TQFDJPI3.js";
- import {
- n as n2
- } from "./chunk-IBW3BDK4.js";
- import {
- ae
- } from "./chunk-OBOLLK7J.js";
- import "./chunk-CR67YDNV.js";
- import "./chunk-3XO4E4TL.js";
- import "./chunk-6G6XHVK2.js";
- import {
- s as s4
- } from "./chunk-FJ72FJKM.js";
- import "./chunk-3RTOMVBL.js";
- import "./chunk-YR7YKE3S.js";
- import "./chunk-GSORSXL5.js";
- import {
- S
- } from "./chunk-GONLHNIL.js";
- import {
- t as t2
- } from "./chunk-JFHGSU33.js";
- import {
- i
- } from "./chunk-TWB5CT7V.js";
- import {
- a,
- m as m2
- } from "./chunk-H3QCF24A.js";
- import {
- i as i2
- } from "./chunk-EAUVYZHD.js";
- import {
- f as f2,
- u
- } from "./chunk-MNZXIBJ7.js";
- import {
- s as s3
- } from "./chunk-YJKEIUMW.js";
- import "./chunk-JH3PLIM6.js";
- import "./chunk-UFOCENZS.js";
- import "./chunk-FCDUTNBY.js";
- import "./chunk-GZJP6H3U.js";
- import "./chunk-PS4B3D6M.js";
- import "./chunk-DO6JJUZG.js";
- import "./chunk-54X4RLMR.js";
- import "./chunk-MWIFVNKP.js";
- import "./chunk-MIWGTTJJ.js";
- import "./chunk-LL6JU3GU.js";
- import "./chunk-LSDW2622.js";
- import "./chunk-ZIWBDWEW.js";
- import "./chunk-IQNZZCQJ.js";
- import "./chunk-B2HJOMLZ.js";
- import "./chunk-II7RCTF3.js";
- import "./chunk-VS4BIQ2O.js";
- import "./chunk-HWIURR7X.js";
- import "./chunk-Q4LKAPDF.js";
- import "./chunk-TODU7HVH.js";
- import {
- I
- } from "./chunk-23ONSYIH.js";
- import "./chunk-P2L4QEOI.js";
- import "./chunk-3T4BXU2T.js";
- import "./chunk-SRMDO2KR.js";
- import "./chunk-PZKZIMMP.js";
- import "./chunk-YLVXZ2PS.js";
- import {
- F
- } from "./chunk-Y4GPJDDM.js";
- import {
- M as M2,
- m
- } from "./chunk-FUB4YNLX.js";
- import {
- f
- } from "./chunk-EE6TL7XD.js";
- import "./chunk-GDB2KX4Y.js";
- import "./chunk-546QCRS4.js";
- import "./chunk-QXZVBSBH.js";
- import "./chunk-T4GXZJ3D.js";
- import "./chunk-773XI6MQ.js";
- import "./chunk-ILP23N26.js";
- import "./chunk-5NM43FFO.js";
- import "./chunk-WFSV2B2I.js";
- import "./chunk-M5BTTMP6.js";
- import "./chunk-XZA4MVET.js";
- import "./chunk-J525NRN3.js";
- import "./chunk-MI7HWWFL.js";
- import "./chunk-Q34L5KZA.js";
- import "./chunk-ZHRMTKME.js";
- import "./chunk-ZVHTCCQC.js";
- import "./chunk-PCGDLSZ4.js";
- import "./chunk-CAYFEZCR.js";
- import "./chunk-MFFE4I2S.js";
- import "./chunk-XBH7TGC2.js";
- import "./chunk-K3NA3LQS.js";
- import "./chunk-LMCIAW5S.js";
- import "./chunk-OTS3UE5B.js";
- import "./chunk-6RAL4JPQ.js";
- import "./chunk-VAY3LZG7.js";
- import "./chunk-4E6K4P67.js";
- import {
- c
- } from "./chunk-LE3RIDC7.js";
- import "./chunk-TRK7CKWP.js";
- import "./chunk-LGW7TID4.js";
- import "./chunk-3OHML7FO.js";
- import "./chunk-G5AI6ZNE.js";
- import "./chunk-H6ETEALK.js";
- import "./chunk-FIYKFRB2.js";
- import "./chunk-P4UZNLD5.js";
- import "./chunk-FYNVVMWY.js";
- import "./chunk-Q52DVFYK.js";
- import "./chunk-HBMVUVZX.js";
- import "./chunk-CRGVDJI6.js";
- import "./chunk-QOV6ITMI.js";
- import "./chunk-DH2OBAUC.js";
- import "./chunk-TNLRDNTC.js";
- import "./chunk-6P6NA7JB.js";
- import "./chunk-S7R5EXHN.js";
- import "./chunk-QTOOFNRV.js";
- import "./chunk-6EU7GFUT.js";
- import "./chunk-HZJYXMI6.js";
- import "./chunk-UPD4MTCL.js";
- import "./chunk-GRBROWI6.js";
- import "./chunk-5NKYXKIA.js";
- import "./chunk-FTI5VP6T.js";
- import {
- g as g3
- } from "./chunk-RZFGRBD7.js";
- import "./chunk-PUSPZYFZ.js";
- import "./chunk-EN7YGJWG.js";
- import "./chunk-VBNMTM7L.js";
- import "./chunk-3D3QEPRE.js";
- import "./chunk-JFNNSBWL.js";
- import {
- b
- } from "./chunk-UD63WBG3.js";
- import "./chunk-LY74KTXV.js";
- import "./chunk-EWE6EXPY.js";
- import "./chunk-KUXNUNAI.js";
- import "./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-C43UE3Z5.js";
- import "./chunk-H2KDMZTR.js";
- import {
- d as d2
- } from "./chunk-RMX2AZ4P.js";
- import "./chunk-NE3ESGA6.js";
- import {
- U,
- l,
- w
- } from "./chunk-YIS6BAC3.js";
- import "./chunk-7XXXCK2A.js";
- import "./chunk-7ZIDBK7B.js";
- import {
- g as g2
- } from "./chunk-PSV473TI.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-RBZL6SRZ.js";
- import "./chunk-WJW5DUN6.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 "./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-4NKD334K.js";
- import "./chunk-65K7LC56.js";
- import "./chunk-ATPLLI5W.js";
- import "./chunk-MXB2XLKV.js";
- import "./chunk-XH7RUGVZ.js";
- import "./chunk-TBBTRX4O.js";
- import "./chunk-YBSUITLL.js";
- import {
- j as j2
- } from "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import {
- U as U2
- } from "./chunk-VNFRAYHO.js";
- import "./chunk-R5IG2D6H.js";
- import "./chunk-VBRY5KJM.js";
- import "./chunk-PDKDCAAD.js";
- import {
- M2 as M,
- j2 as j
- } from "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import "./chunk-MRJEICT6.js";
- import {
- d,
- e,
- n2 as n,
- y3 as y
- } from "./chunk-Y3WMVFTW.js";
- import "./chunk-SAS7RONY.js";
- import "./chunk-WSRBH7BF.js";
- import "./chunk-IHXECKQQ.js";
- import {
- g,
- x
- } from "./chunk-ULGDPLM2.js";
- import {
- s,
- s3 as s2
- } from "./chunk-EMJ4ZSM2.js";
- import "./chunk-IKP3YN53.js";
- import {
- e as e2,
- r,
- t
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/views/2d/layers/imagery/ImageryView2D.js
- var d4 = s.getLogger("esri.views.2d.layers.imagery.ImageryView2D");
- var u2 = class extends y {
- constructor() {
- super(...arguments), this.attached = false, this.container = new s3(), this.updateRequested = false, this.type = "imagery", this._bitmapView = new t2();
- }
- 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) => {
- g(e4) || d4.error(e4);
- });
- }
- hitTest(e3) {
- return new g3({ attributes: {}, geometry: e3.clone(), layer: this.layer });
- }
- attach() {
- this.container.addChild(this._bitmapView);
- const e3 = this.layer.version >= 10, t4 = this.layer.version >= 10.1 ? this.layer.imageMaxHeight : 2048, r2 = this.layer.version >= 10.1 ? this.layer.imageMaxWidth : 2048;
- this.strategy = new S({ container: this._bitmapView, imageNormalizationSupported: e3, imageMaxHeight: t4, 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((e3) => {
- e3.source instanceof HTMLImageElement ? e3.requestRender() : this.layer.applyRenderer({ pixelBlock: e3.source.pixelBlock }).then((t4) => {
- const r2 = e3.source;
- r2.pixelBlock = t4.pixelBlock, r2.filter = (e4) => this.layer.applyFilter(e4), this.container.requestRender();
- });
- });
- }
- 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 (e3.length === 1 && e3[0].source)
- return { extent: e3[0].source.extent, pixelBlock: e3[0].source.originalPixelBlock };
- if (e3.length > 1) {
- const t4 = this.view.extent, r2 = e3.map((e4) => e4.source).filter((e4) => e4.extent && e4.extent.intersects(t4)).map((e4) => ({ extent: e4.extent, pixelBlock: e4.originalPixelBlock })), i3 = f(r2, t4);
- return r(i3) ? { extent: i3.extent, pixelBlock: i3.pixelBlock } : null;
- }
- return null;
- }
- _fetchImage(e3, t4, r2, i3) {
- return (i3 = i3 || {}).timeExtent = this.timeExtent, i3.requestAsImageElement = true, this.layer.fetchImage(e3, t4, r2, i3).then((e4) => e4.imageElement ? e4.imageElement : this.layer.applyRenderer(e4.pixelData, { signal: i3.signal }).then((t5) => {
- const r3 = new i(t5.pixelBlock, t5.extent.clone(), e4.pixelData.pixelBlock);
- return r3.filter = (e5) => this.layer.applyFilter(e5), r3;
- }));
- }
- };
- e([d()], u2.prototype, "attached", void 0), e([d()], u2.prototype, "container", void 0), e([d()], u2.prototype, "layer", void 0), e([d()], u2.prototype, "strategy", void 0), e([d()], u2.prototype, "timeExtent", void 0), e([d()], u2.prototype, "view", void 0), e([d()], u2.prototype, "updateRequested", void 0), e([d()], u2.prototype, "updating", null), e([d()], u2.prototype, "type", void 0), u2 = e([n("esri.views.2d.layers.imagery.ImageryView2D")], u2);
- var y3 = u2;
- // node_modules/@arcgis/core/views/2d/engine/imagery/RasterVFContainer.js
- var t3 = class extends a {
- constructor() {
- super(...arguments), this.symbolTypes = ["triangle"];
- }
- get requiresDedicatedFBO() {
- return false;
- }
- prepareRenderPasses(s5) {
- const t4 = s5.registerRenderPass({ name: "imagery (vf)", brushes: [m2], target: () => this.children, drawPhase: I.MAP });
- return [...super.prepareRenderPasses(s5), t4];
- }
- 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 = s.getLogger("esri.views.2d.layers.imagery.VectorFieldView2D");
- var m3 = class extends y {
- constructor(e3) {
- super(e3), this.update = x((e4, t4) => this._update(e4, t4).catch((e5) => {
- g(e5) || p.error(e5);
- }));
- }
- get updating() {
- return !!this._loading;
- }
- redraw(e3) {
- if (!this.container.children.length)
- return;
- const t4 = this.container.children[0];
- t4.symbolizerParameters = e3, t4.invalidateVAO(), this.container.symbolTypes = e3.style === "wind_speed" ? ["scalar", "triangle"] : e3.style === "simple_scalar" ? ["scalar"] : ["triangle"], this.container.requestRender();
- }
- async _update(e3, t4, r2) {
- if (!e3.stationary)
- return;
- const { extent: i3, spatialReference: s5 } = e3.state, o = new M({ xmin: i3.xmin, ymin: i3.ymin, xmax: i3.xmax, ymax: i3.ymax, spatialReference: s5 }), [a2, n3] = e3.state.size;
- this._loading = this.fetchPixels(o, a2, n3, r2);
- const c2 = await this._loading;
- this._addToDisplay(c2, t4, e3.state), this._loading = null;
- }
- _addToDisplay(e3, t4, r2) {
- if (t(e3.pixelBlock))
- return this.container.children.forEach((e4) => e4.destroy()), void this.container.removeAllChildren();
- const { extent: s5, pixelBlock: o } = e3, a2 = new y2(o);
- a2.offset = [0, 0], a2.symbolizerParameters = t4, a2.rawPixelData = e3, a2.invalidateVAO(), a2.x = s5.xmin, a2.y = s5.ymax, a2.pixelRatio = r2.pixelRatio, a2.rotation = r2.rotation, a2.resolution = r2.resolution, a2.width = o.width * t4.symbolTileSize, a2.height = o.height * t4.symbolTileSize, this.container.children.forEach((e4) => e4.destroy()), this.container.removeAllChildren(), this.container.symbolTypes = t4.style === "wind_speed" ? ["scalar", "triangle"] : t4.style === "simple_scalar" ? ["scalar"] : ["triangle"], this.container.addChild(a2);
- }
- };
- e([d()], m3.prototype, "fetchPixels", void 0), e([d()], m3.prototype, "container", void 0), e([d()], m3.prototype, "_loading", void 0), e([d()], m3.prototype, "updating", null), m3 = e([n("esri.views.2d.layers.imagery.ImageryVFStrategy")], m3);
- var d5 = m3;
- // node_modules/@arcgis/core/views/2d/layers/imagery/VectorFieldView2D.js
- var f3 = class extends d2 {
- constructor() {
- super(...arguments), this.attached = false, this.container = new t3(), this.type = "imageryVF", this._dataParameters = { exportParametersVersion: 0, bbox: "", symbolTileSize: 0, time: "" }, this._fetchpixels = async (e3, t4, r2, i3) => {
- const n3 = await this._projectFullExtentPromise, { symbolTileSize: l2 } = this.layer.renderer, { extent: c2, width: m5, height: p2 } = M2(e3, t4, r2, l2, n3);
- if (r(n3) && !n3.intersects(e3))
- return { extent: c2, pixelBlock: null };
- const h = { bbox: `${c2.xmin}, ${c2.ymin}, ${c2.xmax}, ${c2.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(c2, m5, p2, { timeExtent: this.timeExtent, requestAsImageElement: false, signal: i3 });
- if (this._dataParameters = h, t(u3.pixelBlock))
- return { extent: c2, pixelBlock: null };
- return { extent: c2, pixelBlock: this.layer.rasterInfo.dataType === "vector-uv" ? e2(m(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 d5({ 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: t4 } = this.container.children[0].rawPixelData;
- return { extent: e3, pixelBlock: t4 };
- }
- hitTest(e3) {
- return new g3({ 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 t4 = this._dataParameters.exportParametersVersion === e3.exportParametersVersion, r2 = this._dataParameters.time === e3.time, i3 = this._dataParameters.symbolTileSize === e3.symbolTileSize, s5 = this._dataParameters.bbox === e3.bbox;
- return t4 && r2 && i3 && s5;
- }
- async _getProjectedFullExtent(e3) {
- try {
- return await F(this.layer.fullExtent, e3);
- } catch (t4) {
- try {
- const t5 = (await U2(this.layer.url, { query: { option: "footprints", outSR: e3.wkid || JSON.stringify(e3.toJSON()), f: "json" } })).data.featureCollection.layers[0].layerDefinition.extent;
- return t5 ? M.fromJSON(t5) : null;
- } catch {
- return null;
- }
- }
- }
- _updateSymbolizerParams(e3) {
- e3.type === "vector-field" && (this._symbolizerParams = this.layer.symbolizer.generateWebGLParameters({ pixelBlock: null }));
- }
- };
- e([d()], f3.prototype, "attached", void 0), e([d()], f3.prototype, "container", void 0), e([d()], f3.prototype, "layer", void 0), e([d()], f3.prototype, "timeExtent", void 0), e([d()], f3.prototype, "type", void 0), e([d()], f3.prototype, "view", void 0), e([d()], f3.prototype, "updating", null), f3 = e([n("esri.views.2d.layers.imagery.VectorFieldView2D")], f3);
- var g4 = f3;
- // node_modules/@arcgis/core/views/layers/ImageryLayerView.js
- var m4 = (m5) => {
- let c2 = class extends m5 {
- constructor() {
- super(...arguments), this.view = null;
- }
- async fetchPopupFeatures(e3, s5) {
- const { layer: p2 } = this;
- if (!e3)
- throw new s2("imagerylayerview:fetchPopupFeatures", "Nothing to fetch without area", { layer: p2 });
- const { popupEnabled: a2 } = p2, m6 = s4(p2, s5);
- if (!a2 || t(m6))
- throw new s2("imagerylayerview:fetchPopupFeatures", "Missing required popupTemplate or popupEnabled", { popupEnabled: a2, popupTemplate: m6 });
- const c3 = await m6.getRequiredFields(), l2 = new b();
- l2.timeExtent = this.timeExtent, l2.geometry = e3, l2.outFields = c3, l2.outSpatialReference = e3.spatialReference;
- const y4 = this.view.resolution, h = this.view.type === "2d" ? new j(y4, y4, this.view.spatialReference) : new j(0.5 * y4, 0.5 * y4, this.view.spatialReference), { returnTopmostRaster: w2, showNoDataRecords: d6 } = m6.layerOptions || { returnTopmostRaster: true, showNoDataRecords: false }, f4 = { returnDomainValues: true, returnTopmostRaster: w2, pixelSize: h, showNoDataRecords: d6, signal: r(s5) ? s5.signal : null };
- return p2.queryVisibleRasters(l2, f4).then((e4) => e4);
- }
- canResume() {
- return !!super.canResume() && !this.timeExtent?.isEmpty;
- }
- };
- return e([d()], c2.prototype, "layer", void 0), e([d()], c2.prototype, "suspended", void 0), e([d(g2)], c2.prototype, "timeExtent", void 0), e([d()], c2.prototype, "view", void 0), c2 = e([n("esri.views.layers.ImageryLayerView")], c2), c2;
- };
- // node_modules/@arcgis/core/views/2d/layers/ImageryLayerView2D.js
- var g5 = class extends m4(i2(f2(u))) {
- constructor() {
- super(...arguments), this._exportImageVersion = -1, this._highlightGraphics = new c(), this.subview = null;
- }
- get pixelData() {
- return this.updating ? null : "getPixelData" in this.subview ? this.subview.getPixelData() : null;
- }
- get updating() {
- return !!(!this.subview || "updating" in this.subview && this.subview.updating);
- }
- async hitTest(e3, i3) {
- return this.subview ? [{ type: "graphic", graphic: this.subview.hitTest(e3), layer: this.layer, mapPoint: e3 }] : null;
- }
- update(e3) {
- this.subview?.update(e3);
- }
- attach() {
- this.layer.increaseRasterJobHandlerUsage(), this._setSubView(), this.view && (this._highlightView = new ae({ 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(() => this.layer.blendMode ?? "normal", (e3) => this.subview.container.blendMode = e3, w), l(() => this.layer.effect ?? 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() {
- this.layer.decreaseRasterJobHandlerUsage(), this.container.removeAllChildren(), this._detachSubview(this.subview), this.subview?.destroy(), this.handles.remove("imagerylayerview-update"), this.subview = null, this._highlightView?.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 g3))
- return { remove: () => {
- } };
- let s5 = [];
- return Array.isArray(e3) || j2.isCollection(e3) ? s5 = e3.map((e4) => e4.clone()) : e3 instanceof g3 && (s5 = [e3.clone()]), this._highlightGraphics.addMany(s5), { remove: () => {
- this._highlightGraphics.removeMany(s5);
- } };
- }
- async doRefresh() {
- this.requestUpdate();
- }
- isUpdating() {
- return !this.subview || this.subview.updating;
- }
- _setSubView() {
- if (!this.view)
- return;
- const e3 = this.layer.renderer?.type;
- let i3 = "imagery";
- if (e3 === "vector-field" ? i3 = "imageryVF" : e3 === "flow" && (i3 = "flow"), this.subview) {
- if (this.subview.type === i3)
- return this._attachSubview(this.subview), void (this.subview.type === "flow" && this.subview.redrawOrRefetch());
- this._detachSubview(this.subview), this.subview?.destroy();
- }
- this.subview = i3 === "imagery" ? new y3({ layer: this.layer, view: this.view, timeExtent: this.timeExtent }) : i3 === "imageryVF" ? new g4({ layer: this.layer, view: this.view, timeExtent: this.timeExtent }) : new d3({ 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?.attached && (this.container.removeChild(e3.container), e3.detach(), e3.attached = false);
- }
- };
- e([d()], g5.prototype, "pixelData", null), e([d({ readOnly: true })], g5.prototype, "updating", null), e([d()], g5.prototype, "subview", void 0), g5 = e([n("esri.views.2d.layers.ImageryLayerView2D")], g5);
- var b2 = g5;
- export {
- b2 as default
- };
- //# sourceMappingURL=ImageryLayerView2D-UETKHQEW.js.map
|