123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- import {
- S2 as S,
- m,
- n as n3,
- y
- } from "./chunk-EN7YGJWG.js";
- import "./chunk-VBNMTM7L.js";
- import "./chunk-3D3QEPRE.js";
- import "./chunk-JFNNSBWL.js";
- import "./chunk-WNCU6BFU.js";
- import {
- a
- } from "./chunk-C43UE3Z5.js";
- import "./chunk-7XXXCK2A.js";
- import "./chunk-7ZIDBK7B.js";
- import {
- v as v2
- } from "./chunk-KHA63LLS.js";
- import {
- c as c2
- } from "./chunk-FGKNEJKJ.js";
- import {
- c,
- f,
- v
- } from "./chunk-PSV473TI.js";
- import {
- O
- } 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 {
- n as n2
- } from "./chunk-CYI7KFYB.js";
- import {
- a as a2
- } 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
- } from "./chunk-4DDBH2K5.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-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 "./chunk-TBBTRX4O.js";
- import "./chunk-YBSUITLL.js";
- import "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import {
- U
- } from "./chunk-VNFRAYHO.js";
- import "./chunk-R5IG2D6H.js";
- import {
- Ut
- } from "./chunk-VBRY5KJM.js";
- import "./chunk-PDKDCAAD.js";
- import {
- M2 as M,
- o
- } from "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import {
- G
- } from "./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 {
- w
- } from "./chunk-ULGDPLM2.js";
- import {
- r as r2
- } from "./chunk-EMJ4ZSM2.js";
- import "./chunk-IKP3YN53.js";
- import {
- r
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/layers/GeoRSSLayer.js
- var L = ["atom", "xml"];
- var R = { base: a, key: "type", typeMap: { "simple-line": m }, errorContext: "symbol" };
- var k = { base: a, key: "type", typeMap: { "picture-marker": n3, "simple-marker": y }, errorContext: "symbol" };
- var _ = { base: a, key: "type", typeMap: { "simple-fill": S }, errorContext: "symbol" };
- var w2 = class extends a2(n2(c2(v2(t(O(b)))))) {
- constructor(...e2) {
- super(...e2), this.description = null, this.fullExtent = null, this.legendEnabled = true, this.lineSymbol = null, this.pointSymbol = null, this.polygonSymbol = null, this.operationalLayerType = "GeoRSS", this.url = null, this.type = "geo-rss";
- }
- normalizeCtorArgs(e2, o2) {
- return typeof e2 == "string" ? { url: e2, ...o2 } : e2;
- }
- readFeatureCollections(e2, o2) {
- return o2.featureCollection.layers.forEach((e3) => {
- const o3 = e3.layerDefinition.drawingInfo.renderer.symbol;
- o3 && o3.type === "esriSFS" && o3.outline?.style.includes("esriSFS") && (o3.outline.style = "esriSLSSolid");
- }), o2.featureCollection.layers;
- }
- get hasPoints() {
- return this._hasGeometry("esriGeometryPoint");
- }
- get hasPolylines() {
- return this._hasGeometry("esriGeometryPolyline");
- }
- get hasPolygons() {
- return this._hasGeometry("esriGeometryPolygon");
- }
- get title() {
- const e2 = this._get("title");
- return e2 && this.originOf("title") !== "defaults" ? e2 : this.url ? Ut(this.url, L) || "GeoRSS" : e2 || "";
- }
- set title(e2) {
- this._set("title", e2);
- }
- load(e2) {
- const o2 = r(e2) ? e2.signal : null;
- return this.addResolvingPromise(this.loadFromPortal({ supportedTypes: ["Map Service", "Feature Service", "Feature Collection", "Scene Service"] }, e2).catch(w).then(() => this._fetchService(o2)).then((e3) => {
- this.read(e3, { origin: "service" });
- })), Promise.resolve(this);
- }
- async hasDataChanged() {
- const e2 = await this._fetchService();
- return this.read(e2, { origin: "service", ignoreDefaults: true }), true;
- }
- async _fetchService(e2) {
- const t2 = this.spatialReference, { data: s } = await U(r2.geoRSSServiceUrl, { query: { url: this.url, refresh: !!this.loaded || void 0, outSR: G(t2) ? void 0 : t2.wkid ?? JSON.stringify(t2) }, signal: e2 });
- return s;
- }
- _hasGeometry(e2) {
- return this.featureCollections?.some((o2) => o2.featureSet?.geometryType === e2 && o2.featureSet.features?.length > 0) ?? false;
- }
- };
- e([d()], w2.prototype, "description", void 0), e([d()], w2.prototype, "featureCollections", void 0), e([o("service", "featureCollections", ["featureCollection.layers"])], w2.prototype, "readFeatureCollections", null), e([d({ type: M, json: { name: "lookAtExtent" } })], w2.prototype, "fullExtent", void 0), e([d(v)], w2.prototype, "id", void 0), e([d(c)], w2.prototype, "legendEnabled", void 0), e([d({ types: R, json: { write: true } })], w2.prototype, "lineSymbol", void 0), e([d({ type: ["show", "hide"] })], w2.prototype, "listMode", void 0), e([d({ types: k, json: { write: true } })], w2.prototype, "pointSymbol", void 0), e([d({ types: _, json: { write: true } })], w2.prototype, "polygonSymbol", void 0), e([d({ type: ["GeoRSS"] })], w2.prototype, "operationalLayerType", void 0), e([d(f)], w2.prototype, "url", void 0), e([d({ json: { origins: { service: { read: { source: "name", reader: (e2) => e2 || void 0 } } } } })], w2.prototype, "title", null), e([d({ readOnly: true, json: { read: false }, value: "geo-rss" })], w2.prototype, "type", void 0), w2 = e([n("esri.layers.GeoRSSLayer")], w2);
- var F = w2;
- export {
- F as default
- };
- //# sourceMappingURL=GeoRSSLayer-RJD4ROGC.js.map
|