import { S } from "./chunk-GONLHNIL.js"; import { t } from "./chunk-JFHGSU33.js"; import "./chunk-TWB5CT7V.js"; import "./chunk-H3QCF24A.js"; import { i } from "./chunk-EAUVYZHD.js"; import { f, u } from "./chunk-MNZXIBJ7.js"; import "./chunk-YJKEIUMW.js"; import "./chunk-JH3PLIM6.js"; import "./chunk-FCDUTNBY.js"; import "./chunk-LL6JU3GU.js"; import "./chunk-ZIWBDWEW.js"; import "./chunk-IQNZZCQJ.js"; import "./chunk-Q4LKAPDF.js"; import "./chunk-TODU7HVH.js"; import "./chunk-23ONSYIH.js"; import "./chunk-3T4BXU2T.js"; import "./chunk-YLVXZ2PS.js"; import { l as l2 } from "./chunk-OQZ4CVQB.js"; import "./chunk-EE6TL7XD.js"; import "./chunk-GDB2KX4Y.js"; import "./chunk-546QCRS4.js"; import "./chunk-QXZVBSBH.js"; import "./chunk-773XI6MQ.js"; import "./chunk-WFSV2B2I.js"; import "./chunk-J525NRN3.js"; import "./chunk-MI7HWWFL.js"; import "./chunk-ZHRMTKME.js"; import "./chunk-MFFE4I2S.js"; import "./chunk-OTS3UE5B.js"; import "./chunk-6RAL4JPQ.js"; import "./chunk-LGW7TID4.js"; import "./chunk-G5AI6ZNE.js"; import "./chunk-FIYKFRB2.js"; import "./chunk-FYNVVMWY.js"; import "./chunk-Q52DVFYK.js"; import "./chunk-HBMVUVZX.js"; import "./chunk-CRGVDJI6.js"; import "./chunk-6P6NA7JB.js"; import "./chunk-XLV7RUSE.js"; import "./chunk-NTUXR253.js"; import "./chunk-RMX2AZ4P.js"; import "./chunk-NE3ESGA6.js"; import { l } from "./chunk-YIS6BAC3.js"; import "./chunk-7XXXCK2A.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-YBSUITLL.js"; import "./chunk-ALDCDSPV.js"; import "./chunk-DT6EAZQ5.js"; import "./chunk-HNOZUNJ4.js"; import "./chunk-VBRY5KJM.js"; import "./chunk-PDKDCAAD.js"; import { M2 as M } from "./chunk-ECW2QABR.js"; import "./chunk-GCDJLKH4.js"; import "./chunk-MRJEICT6.js"; import { d, e, n2 as n } from "./chunk-Y3WMVFTW.js"; import "./chunk-SAS7RONY.js"; import "./chunk-WSRBH7BF.js"; import "./chunk-IHXECKQQ.js"; import { g } from "./chunk-ULGDPLM2.js"; import { s, s3 as s2 } from "./chunk-EMJ4ZSM2.js"; import "./chunk-IKP3YN53.js"; import "./chunk-GZT4BVFP.js"; import "./chunk-A5ICIBVI.js"; // node_modules/@arcgis/core/views/layers/WMSLayerView.js var a = (a2) => { let i2 = class extends a2 { initialize() { this.exportImageParameters = new l2({ layer: this.layer }); } destroy() { this.exportImageParameters.destroy(), this.exportImageParameters = null; } get exportImageVersion() { return this.exportImageParameters?.commitProperty("version"), this.commitProperty("timeExtent"), (this._get("exportImageVersion") || 0) + 1; } fetchPopupFeatures(e2) { const { layer: t2 } = this; if (!e2) return Promise.reject(new s2("wmslayerview:fetchPopupFeatures", "Nothing to fetch without area", { layer: t2 })); const { popupEnabled: o } = t2; if (!o) return Promise.reject(new s2("wmslayerview:fetchPopupFeatures", "popupEnabled should be true", { popupEnabled: o })); const s3 = this.createFetchPopupFeaturesQuery(e2); if (!s3) return Promise.resolve([]); const { extent: p, width: a3, height: i3, x: m, y: n2 } = s3; if (!(p && a3 && i3)) throw new s2("wmslayerview:fetchPopupFeatures", "WMSLayer does not support fetching features.", { extent: p, width: a3, height: i3 }); const c = t2.fetchFeatureInfo(p, a3, i3, m, n2); return Promise.resolve(c ? [c] : []); } }; return e([d()], i2.prototype, "exportImageParameters", void 0), e([d({ readOnly: true })], i2.prototype, "exportImageVersion", null), e([d()], i2.prototype, "layer", void 0), e([d(g2)], i2.prototype, "timeExtent", void 0), i2 = e([n("esri.layers.mixins.WMSLayerView")], i2), i2; }; // node_modules/@arcgis/core/views/2d/layers/WMSLayerView2D.js var u2 = s.getLogger("esri.views.2d.layers.WMSLayerView2D"); var l3 = class extends a(i(f(u))) { constructor() { super(...arguments), this.container = new t(); } supportsSpatialReference(e2) { return this.layer.serviceSupportsSpatialReference(e2); } update(e2) { this.strategy.update(e2).catch((e3) => { g(e3) || u2.error(e3); }); } attach() { const { layer: e2, container: t2 } = this, { imageMaxHeight: r, imageMaxWidth: i2 } = e2; this.strategy = new S({ container: t2, fetchSource: this.fetchImage.bind(this), requestUpdate: this.requestUpdate.bind(this), imageMaxHeight: r, imageMaxWidth: i2, imageRotationSupported: false, imageNormalizationSupported: false, hidpi: false }), this.handles.add(l(() => this.exportImageVersion, () => this.requestUpdate()), "exportImageVersion"); } detach() { this.handles.remove("exportImageVersion"), this.strategy.destroy(), this.strategy = null, this.container.removeAllChildren(); } moveStart() { } viewChange() { } moveEnd() { this.requestUpdate(); } createFetchPopupFeaturesQuery(e2) { const { view: t2, container: r } = this, { x: s3, y: i2 } = e2, { spatialReference: o } = t2; let n2 = null, p = 0, m = 0; if (r.children.some((e3) => { const { width: t3, height: r2, resolution: h2, x: c2, y: d3 } = e3, u3 = c2 + h2 * t3, l4 = d3 - h2 * r2; return s3 >= c2 && s3 <= u3 && i2 <= d3 && i2 >= l4 && (n2 = new M({ xmin: c2, ymin: l4, xmax: u3, ymax: d3, spatialReference: o }), p = t3, m = r2, true); }), !n2) return null; const h = n2.width / p, c = Math.round((s3 - n2.xmin) / h), d2 = Math.round((n2.ymax - i2) / h); return { extent: n2, width: p, height: m, x: c, y: d2 }; } async doRefresh() { this.requestUpdate(); } isUpdating() { return this.strategy.updating || this.updateRequested; } fetchImage(e2, t2, r, s3) { return this.layer.fetchImage(e2, t2, r, { timeExtent: this.timeExtent, ...s3 }); } }; e([d()], l3.prototype, "strategy", void 0), e([d()], l3.prototype, "updating", void 0), l3 = e([n("esri.views.2d.layers.WMSLayerView2D")], l3); var y = l3; export { y as default }; //# sourceMappingURL=WMSLayerView2D-TWABDW5V.js.map