123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- import {
- S2 as S,
- m,
- n as n3,
- y as y2
- } from "./chunk-3Z755LKF.js";
- import "./chunk-LTZ5XXDV.js";
- import "./chunk-DLMAGHHC.js";
- import "./chunk-JOYXMSKE.js";
- import "./chunk-ECY35CJI.js";
- import {
- a
- } from "./chunk-MCWCB5IY.js";
- import {
- v
- } from "./chunk-JUWKPBLS.js";
- import {
- c as c2
- } from "./chunk-WLSB4F4I.js";
- import {
- c,
- f,
- j
- } from "./chunk-GLSWDDR3.js";
- import {
- O
- } from "./chunk-MIQGEDET.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 {
- p
- } from "./chunk-GN35O2ZO.js";
- import {
- n as n2
- } from "./chunk-XTVKPAWY.js";
- import "./chunk-3OSQ6GXO.js";
- import "./chunk-3WQOA5CB.js";
- import {
- t
- } from "./chunk-PLWDAYK7.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-X4SA4ELJ.js";
- import "./chunk-5N7JLUJJ.js";
- import "./chunk-ZAY3CMAZ.js";
- import "./chunk-P3XKUGLS.js";
- import "./chunk-2ZSOO377.js";
- import "./chunk-YUA3AHKR.js";
- import "./chunk-LU5IJZB4.js";
- import "./chunk-7IBV2TRE.js";
- import "./chunk-ZLNEXZAN.js";
- import "./chunk-5UVJ64RB.js";
- import "./chunk-SFEFRQCL.js";
- import {
- b
- } from "./chunk-DXVOOCG4.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 "./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
- } from "./chunk-DVUG3KID.js";
- import "./chunk-FWSQEIAR.js";
- import {
- Ut
- } from "./chunk-VEGAOVMY.js";
- import {
- o,
- w2
- } from "./chunk-6T6G6LCQ.js";
- import "./chunk-YEJL5NEF.js";
- import {
- G
- } from "./chunk-PQFTYGF5.js";
- import {
- e,
- n5 as n,
- y3 as y
- } from "./chunk-2Z2TG5CU.js";
- import "./chunk-6KZ2LTDA.js";
- import "./chunk-U2XHEJM7.js";
- import "./chunk-SQOPWYIT.js";
- import {
- w
- } from "./chunk-V6P2MAQQ.js";
- import {
- s
- } from "./chunk-E5O6P5I2.js";
- import "./chunk-SPWQ3AWG.js";
- import "./chunk-2TIUKVZN.js";
- import {
- r
- } from "./chunk-YXWMMD76.js";
- import "./chunk-S5KM4IGW.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": y2 }, errorContext: "symbol" };
- var _ = { base: a, key: "type", typeMap: { "simple-fill": S }, errorContext: "symbol" };
- var w3 = class extends n2(p(c2(v(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 "string" == typeof e2 ? { url: e2, ...o2 } : e2;
- }
- readFeatureCollections(e2, o2) {
- return o2.featureCollection.layers.forEach((e3) => {
- var _a;
- const o3 = e3.layerDefinition.drawingInfo.renderer.symbol;
- o3 && "esriSFS" === o3.type && ((_a = o3.outline) == null ? void 0 : _a.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 && "defaults" !== this.originOf("title") ? 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) {
- var _a;
- const t2 = this.spatialReference, { data: s2 } = await U(s.geoRSSServiceUrl, { query: { url: this.url, refresh: !!this.loaded || void 0, outSR: G(t2) ? void 0 : (_a = t2.wkid) != null ? _a : JSON.stringify(t2) }, signal: e2 });
- return s2;
- }
- _hasGeometry(e2) {
- var _a, _b;
- return (_b = (_a = this.featureCollections) == null ? void 0 : _a.some((o2) => {
- var _a2, _b2;
- return ((_a2 = o2.featureSet) == null ? void 0 : _a2.geometryType) === e2 && ((_b2 = o2.featureSet.features) == null ? void 0 : _b2.length) > 0;
- })) != null ? _b : false;
- }
- };
- e([y()], w3.prototype, "description", void 0), e([y()], w3.prototype, "featureCollections", void 0), e([o("service", "featureCollections", ["featureCollection.layers"])], w3.prototype, "readFeatureCollections", null), e([y({ type: w2, json: { name: "lookAtExtent" } })], w3.prototype, "fullExtent", void 0), e([y(j)], w3.prototype, "id", void 0), e([y(c)], w3.prototype, "legendEnabled", void 0), e([y({ types: R, json: { write: true } })], w3.prototype, "lineSymbol", void 0), e([y({ type: ["show", "hide"] })], w3.prototype, "listMode", void 0), e([y({ types: k, json: { write: true } })], w3.prototype, "pointSymbol", void 0), e([y({ types: _, json: { write: true } })], w3.prototype, "polygonSymbol", void 0), e([y({ type: ["GeoRSS"] })], w3.prototype, "operationalLayerType", void 0), e([y(f)], w3.prototype, "url", void 0), e([y({ json: { origins: { service: { read: { source: "name", reader: (e2) => e2 || void 0 } } } } })], w3.prototype, "title", null), e([y({ readOnly: true, json: { read: false }, value: "geo-rss" })], w3.prototype, "type", void 0), w3 = e([n("esri.layers.GeoRSSLayer")], w3);
- var F = w3;
- export {
- F as default
- };
- //# sourceMappingURL=GeoRSSLayer-OMFPL5EF.js.map
|