123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- import {
- C,
- D,
- W,
- X,
- z
- } from "./chunk-Z32FUDOP.js";
- import "./chunk-FEH5F4VW.js";
- import "./chunk-YVTH4OGO.js";
- import {
- c,
- u
- } from "./chunk-4D6PVVFX.js";
- import "./chunk-WQJRLXWG.js";
- import {
- p as p4
- } from "./chunk-XKHC7KKF.js";
- import {
- p as p3,
- p3 as p5,
- r as r3
- } from "./chunk-HGDNY7J3.js";
- import "./chunk-GD5TMIPM.js";
- import {
- l as l2
- } from "./chunk-ZRX5UNQH.js";
- import {
- u as u3
- } from "./chunk-VEAEIBHK.js";
- import "./chunk-6SASJ6IM.js";
- import "./chunk-3OHML7FO.js";
- import {
- x as x2
- } from "./chunk-2VFJVI2I.js";
- import "./chunk-HBMVUVZX.js";
- import "./chunk-DH2OBAUC.js";
- import "./chunk-TNLRDNTC.js";
- import {
- a as a4
- } from "./chunk-435DJNTD.js";
- import "./chunk-T3EUPDKL.js";
- import "./chunk-2SJEIKRW.js";
- import "./chunk-PHRSJJ3U.js";
- import {
- j as j2
- } from "./chunk-RQJNTZAL.js";
- import "./chunk-QTOOFNRV.js";
- import "./chunk-7O56JPWQ.js";
- import {
- o as o2
- } from "./chunk-6B2LQBKM.js";
- import {
- d as d3
- } from "./chunk-MFI6BALW.js";
- import {
- n as n3,
- p2
- } 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 "./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 {
- y
- } from "./chunk-BJHM4JNS.js";
- import "./chunk-F6A2QQ26.js";
- import "./chunk-XLV7RUSE.js";
- import "./chunk-NTUXR253.js";
- import "./chunk-EOSZHC5H.js";
- import "./chunk-C43UE3Z5.js";
- import "./chunk-H2KDMZTR.js";
- import {
- a as a2
- } from "./chunk-RMX2AZ4P.js";
- import "./chunk-NE3ESGA6.js";
- import "./chunk-YIS6BAC3.js";
- import "./chunk-7XXXCK2A.js";
- import "./chunk-7ZIDBK7B.js";
- import {
- v
- } from "./chunk-KHA63LLS.js";
- import {
- c as c3
- } from "./chunk-FGKNEJKJ.js";
- import {
- c as c2,
- d as d2,
- f,
- l,
- m as m2,
- p,
- u as u2
- } from "./chunk-PSV473TI.js";
- import {
- O
- } from "./chunk-I3OBGWNS.js";
- import "./chunk-FONIFA5N.js";
- import "./chunk-EG5OI4V4.js";
- import "./chunk-65BYCSII.js";
- import {
- c as c4,
- m as m3
- } from "./chunk-WZQZRKNH.js";
- import "./chunk-LRDX4TO7.js";
- import "./chunk-6A4U74YA.js";
- import {
- n as n2
- } from "./chunk-CYI7KFYB.js";
- import {
- a as a3
- } from "./chunk-5LXROFTA.js";
- import "./chunk-GJXW4HL5.js";
- import "./chunk-WJW5DUN6.js";
- import {
- t
- } 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 "./chunk-7N4X6GF3.js";
- import "./chunk-JXW4QTJA.js";
- import "./chunk-UXF37FQ4.js";
- import {
- i
- } from "./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
- } from "./chunk-TBBTRX4O.js";
- import "./chunk-YBSUITLL.js";
- import "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import "./chunk-VNFRAYHO.js";
- import "./chunk-R5IG2D6H.js";
- import {
- j
- } from "./chunk-VBRY5KJM.js";
- import "./chunk-PDKDCAAD.js";
- import {
- M2 as M
- } from "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import {
- k2 as k,
- r as r2
- } from "./chunk-MRJEICT6.js";
- import {
- d,
- e,
- n2 as n
- } from "./chunk-Y3WMVFTW.js";
- import "./chunk-SAS7RONY.js";
- import "./chunk-WSRBH7BF.js";
- import {
- S
- } from "./chunk-IHXECKQQ.js";
- import {
- E,
- x
- } from "./chunk-ULGDPLM2.js";
- import {
- s3 as s
- } from "./chunk-EMJ4ZSM2.js";
- import {
- o
- } from "./chunk-IKP3YN53.js";
- import {
- a,
- e as e2,
- r
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/layers/graphics/sources/WFSSource.js
- var j3 = class extends a2(m) {
- constructor() {
- super(...arguments), this.capabilities = c(false, false), this.type = "wfs", this.refresh = x(async (e3) => {
- await this.load();
- const { extent: t2 } = await this._connection.invoke("refresh", e3);
- return this.sourceJSON.extent = t2, { dataChanged: true, updates: { extent: this.sourceJSON.extent } };
- });
- }
- load(e3) {
- const t2 = (r(e3) && e3.signal) ?? null;
- return this.addResolvingPromise(this._startWorker({ signal: t2 })), Promise.resolve(this);
- }
- destroy() {
- this._connection?.close(), this._connection = null;
- }
- async openPorts() {
- return await this.load(), this._connection.openPorts();
- }
- async queryFeatures(e3, t2 = {}) {
- await this.load(t2);
- const r4 = await this._connection.invoke("queryFeatures", e3 ? e3.toJSON() : null, t2);
- return x2.fromJSON(r4);
- }
- async queryFeaturesJSON(e3, t2 = {}) {
- return await this.load(t2), this._connection.invoke("queryFeatures", e3 ? e3.toJSON() : null, t2);
- }
- async queryFeatureCount(e3, t2 = {}) {
- return await this.load(t2), this._connection.invoke("queryFeatureCount", e3 ? e3.toJSON() : null, t2);
- }
- async queryObjectIds(e3, t2 = {}) {
- return await this.load(t2), this._connection.invoke("queryObjectIds", e3 ? e3.toJSON() : null, t2);
- }
- async queryExtent(e3, t2 = {}) {
- await this.load(t2);
- const r4 = await this._connection.invoke("queryExtent", e3 ? e3.toJSON() : null, t2);
- return { count: r4.count, extent: M.fromJSON(r4.extent) };
- }
- async querySnapping(e3, t2 = {}) {
- return await this.load(t2), this._connection.invoke("querySnapping", e3, t2);
- }
- async _createLoadOptions(e3) {
- const { url: r4, customParameters: o3, name: s2, namespaceUri: a5, spatialReference: n4, fields: c5, geometryType: p6, swapXY: l3 } = this.layer;
- if (!r4)
- throw new s("wfs-layer:missing-url", "WFSLayer must be created with a url");
- this.wfsCapabilities || (this.wfsCapabilities = await D(r4, { customParameters: o3, ...e3 }));
- const u4 = ["fields", "geometryType", "name", "namespaceUri", "spatialReference", "swapXY"].some((e4) => this.layer[e4] == null), y2 = u4 ? await X(this.wfsCapabilities, s2, a5, { spatialReference: n4, customParameters: o3, signal: e3?.signal }) : { ...z(c5), geometryType: p6, name: s2, namespaceUri: a5, spatialReference: n4, swapXY: l3 }, d4 = e2(W(this.wfsCapabilities.readFeatureTypes(), y2.name, y2.namespaceUri)), S2 = i.toJSON(y2.geometryType);
- return { customParameters: o3, featureType: d4, fields: y2.fields.map((e4) => e4.toJSON()), geometryField: y2.geometryField, geometryType: S2, getFeatureUrl: this.wfsCapabilities.operations.GetFeature.url, getFeatureOutputFormat: this.wfsCapabilities.operations.GetFeature.outputFormat, objectIdField: y2.objectIdField, spatialReference: y2.spatialReference.toJSON(), swapXY: y2.swapXY };
- }
- async _startWorker(e3) {
- const [t2, r4] = await E([this._createLoadOptions(e3), u3("WFSSourceWorker", { ...e3, strategy: a("feature-layers-workers") ? "dedicated" : "local" })]), s2 = t2.error || r4.error || null, a5 = r4.value || null;
- if (s2)
- throw a5 && a5.close(), s2;
- const i2 = t2.value;
- this._connection = r4.value;
- const { extent: n4 } = await this._connection.invoke("load", i2, e3);
- this.sourceJSON = { extent: n4, fields: i2.fields, geometryType: i2.geometryType, objectIdField: i2.objectIdField, geometryField: i2.geometryField, drawingInfo: u(i2.geometryType), name: i2.featureType.title, wfsInfo: { name: i2.featureType.name, featureUrl: i2.getFeatureUrl, maxFeatures: 3e3, swapXY: i2.swapXY, supportedSpatialReferences: i2.featureType.supportedSpatialReferences, version: "2.0.0", wfsNamespace: i2.featureType.namespaceUri } };
- }
- };
- e([d()], j3.prototype, "capabilities", void 0), e([d({ constructOnly: true })], j3.prototype, "layer", void 0), e([d()], j3.prototype, "sourceJSON", void 0), e([d()], j3.prototype, "type", void 0), e([d()], j3.prototype, "wfsCapabilities", void 0), j3 = e([n("esri.layers.graphics.sources.WFSSource")], j3);
- // node_modules/@arcgis/core/layers/WFSLayer.js
- var J;
- var M2 = l2();
- var _ = J = class extends p4(o2(p3(a3(a4(n2(t(c3(v(O(b2)))))))))) {
- constructor(e3) {
- super(e3), this.capabilities = null, this.copyright = null, this.customParameters = null, this.definitionExpression = null, this.displayField = null, this.elevationInfo = null, this.featureReduction = null, this.featureUrl = void 0, this.fields = null, this.fieldsIndex = null, this.fullExtent = null, this.geometryType = null, this.labelsVisible = true, this.labelingInfo = null, this.legendEnabled = true, this.objectIdField = null, this.operationalLayerType = "WFS", this.maxFeatures = 3e3, this.mode = 0, this.name = null, this.namespaceUri = null, this.outFields = null, this.popupEnabled = true, this.popupTemplate = null, this.screenSizePerspectiveEnabled = true, this.source = new j3({ layer: this }), this.spatialReference = k.WGS84, this.spatialReferences = [4326], this.swapXY = void 0, this.title = "WFS", this.type = "wfs", this.url = null, this.version = void 0;
- }
- static fromWFSLayerInfo(e3) {
- const { customParameters: r4, fields: t2, geometryField: i2, geometryType: o3, name: s2, namespaceUri: n4, objectIdField: p6, spatialReference: a5, swapXY: l3, url: d4, wfsCapabilities: m4 } = e3;
- return new J({ customParameters: r4, fields: t2, geometryField: i2, geometryType: o3, name: s2, namespaceUri: n4, objectIdField: p6, spatialReference: a5, swapXY: l3, url: d4, wfsCapabilities: m4 });
- }
- destroy() {
- this.source?.destroy();
- }
- load(e3) {
- return this.addResolvingPromise(this.loadFromPortal({ supportedTypes: ["WFS"] }, e3).then(() => this.source.load(e3)).then(() => {
- this.read(this.source.sourceJSON, { origin: "service", url: this.parsedUrl }), this.revert(["objectIdField", "fields", "timeInfo", "spatialReference", "name", "namespaceUri"], "service"), c4(this.renderer, this.fieldsIndex), m3(this.timeInfo, this.fieldsIndex);
- })), Promise.resolve(this);
- }
- get createQueryVersion() {
- return this.commitProperty("definitionExpression"), this.commitProperty("timeExtent"), this.commitProperty("timeOffset"), this.commitProperty("geometryType"), this.commitProperty("capabilities"), (this._get("createQueryVersion") || 0) + 1;
- }
- get defaultPopupTemplate() {
- return this.createPopupTemplate();
- }
- writeFields(e3, r4, t2) {
- const i2 = e3.filter((e4) => e4.name !== C);
- this.geometryField && i2.unshift(new y({ name: this.geometryField, alias: this.geometryField, type: "geometry" })), o(t2, i2.map((e4) => e4.toJSON()), r4);
- }
- get parsedUrl() {
- return this.url ? j(this.url) : null;
- }
- set renderer(e3) {
- c4(e3, this.fieldsIndex), this._set("renderer", e3);
- }
- createPopupTemplate(e3) {
- return d3(this, e3);
- }
- createQuery() {
- const e3 = new b();
- e3.returnGeometry = true, e3.outFields = ["*"], e3.where = this.definitionExpression || "1=1";
- const { timeOffset: r4, timeExtent: t2 } = this;
- return e3.timeExtent = r4 != null && t2 != null ? t2.offset(-r4.value, r4.unit) : t2 || null, e3;
- }
- getFieldDomain(e3, r4) {
- return this.getField(e3)?.domain;
- }
- getField(e3) {
- return this.fieldsIndex.get(e3);
- }
- queryFeatures(e3, r4) {
- return this.load().then(() => this.source.queryFeatures(b.from(e3) || this.createQuery(), r4)).then((e4) => {
- if (e4?.features)
- for (const r5 of e4.features)
- r5.layer = r5.sourceLayer = this;
- return e4;
- });
- }
- queryObjectIds(e3, r4) {
- return this.load().then(() => this.source.queryObjectIds(b.from(e3) || this.createQuery(), r4));
- }
- queryFeatureCount(e3, r4) {
- return this.load().then(() => this.source.queryFeatureCount(b.from(e3) || this.createQuery(), r4));
- }
- queryExtent(e3, r4) {
- return this.load().then(() => this.source.queryExtent(b.from(e3) || this.createQuery(), r4));
- }
- async hasDataChanged() {
- try {
- const { dataChanged: e3, updates: r4 } = await this.source.refresh(this.customParameters);
- return r(r4) && this.read(r4, { origin: "service", url: this.parsedUrl, ignoreDefaults: true }), e3;
- } catch {
- }
- return false;
- }
- };
- e([d({ readOnly: true, aliasOf: "source.capabilities" })], _.prototype, "capabilities", void 0), e([d({ type: String })], _.prototype, "copyright", void 0), e([d({ readOnly: true })], _.prototype, "createQueryVersion", null), e([d({ json: { name: "wfsInfo.customParameters", write: { ignoreOrigin: true } } })], _.prototype, "customParameters", void 0), e([d({ readOnly: true })], _.prototype, "defaultPopupTemplate", null), e([d({ type: String, json: { name: "layerDefinition.definitionExpression", write: { enabled: true, allowNull: true } } })], _.prototype, "definitionExpression", void 0), e([d({ type: String })], _.prototype, "displayField", void 0), e([d(d2)], _.prototype, "elevationInfo", void 0), e([d(p5)], _.prototype, "featureReduction", void 0), e([d({ type: String, readOnly: true, json: { name: "wfsInfo.featureUrl", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "featureUrl", void 0), e([d({ type: [y], json: { name: "layerDefinition.fields", write: { ignoreOrigin: true, isRequired: true }, origins: { service: { name: "fields" } } } })], _.prototype, "fields", void 0), e([r2("fields")], _.prototype, "writeFields", null), e([d(M2.fieldsIndex)], _.prototype, "fieldsIndex", void 0), e([d({ type: M, json: { name: "extent" } })], _.prototype, "fullExtent", void 0), e([d()], _.prototype, "geometryField", void 0), e([d({ type: String, json: { read: { source: "layerDefinition.geometryType", reader: i.read }, write: { target: "layerDefinition.geometryType", writer: i.write, ignoreOrigin: true }, origins: { service: { read: i.read } } } })], _.prototype, "geometryType", void 0), e([d({ type: String })], _.prototype, "id", void 0), e([d(m2)], _.prototype, "labelsVisible", void 0), e([d({ type: [j2], json: { name: "layerDefinition.drawingInfo.labelingInfo", read: { reader: r3 }, write: true } })], _.prototype, "labelingInfo", void 0), e([d(c2)], _.prototype, "legendEnabled", void 0), e([d({ type: ["show", "hide"] })], _.prototype, "listMode", void 0), e([d({ type: String })], _.prototype, "objectIdField", void 0), e([d({ type: ["WFS"] })], _.prototype, "operationalLayerType", void 0), e([d({ type: S, json: { name: "wfsInfo.maxFeatures", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "maxFeatures", void 0), e([d({ type: [0], readOnly: true, json: { origins: { "web-map": { write: { ignoreOrigin: true, isRequired: true } } } } })], _.prototype, "mode", void 0), e([d({ type: String, json: { name: "wfsInfo.name", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "name", void 0), e([d({ type: String, json: { name: "wfsInfo.wfsNamespace", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "namespaceUri", void 0), e([d(u2)], _.prototype, "opacity", void 0), e([d(M2.outFields)], _.prototype, "outFields", void 0), e([d({ readOnly: true })], _.prototype, "parsedUrl", null), e([d(p)], _.prototype, "popupEnabled", void 0), e([d({ type: B, json: { name: "popupInfo", write: true } })], _.prototype, "popupTemplate", void 0), e([d({ types: p2, json: { origins: { service: { name: "drawingInfo.renderer" }, "web-scene": { types: n3, name: "layerDefinition.drawingInfo.renderer", write: true } }, name: "layerDefinition.drawingInfo.renderer", write: { ignoreOrigin: true } } })], _.prototype, "renderer", null), e([d(l)], _.prototype, "screenSizePerspectiveEnabled", void 0), e([d({ readOnly: true })], _.prototype, "source", void 0), e([d({ type: k, json: { name: "layerDefinition.spatialReference", write: { ignoreOrigin: true, isRequired: true }, origins: { service: { name: "extent.spatialReference" } } } })], _.prototype, "spatialReference", void 0), e([d({ readOnly: true, type: [S], json: { name: "wfsInfo.supportedSpatialReferences", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "spatialReferences", void 0), e([d({ type: Boolean, value: false, json: { name: "wfsInfo.swapXY", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "swapXY", void 0), e([d({ json: { write: { ignoreOrigin: true, isRequired: true }, origins: { service: { name: "name" } } } })], _.prototype, "title", void 0), e([d({ json: { read: false }, readOnly: true })], _.prototype, "type", void 0), e([d(f)], _.prototype, "url", void 0), e([d({ type: String, readOnly: true, json: { name: "wfsInfo.version", write: { ignoreOrigin: true, isRequired: true } } })], _.prototype, "version", void 0), e([d({ aliasOf: "source.wfsCapabilities" })], _.prototype, "wfsCapabilities", void 0), _ = J = e([n("esri.layers.WFSLayer")], _);
- var k2 = _;
- export {
- k2 as default
- };
- //# sourceMappingURL=WFSLayer-CC74A6A6.js.map
|